-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address audit issues #5
base: main
Are you sure you want to change the base?
Conversation
…ow hyperlane mailbox as order recipient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thank you for holding off on forwarding to Zellic, just wanted to check that the assumptions the solver makes about semantics are unchanged.
@@ -266,6 +266,8 @@ contract FastTransferGateway is Initializable, UUPSUpgradeable, OwnableUpgradeab | |||
/// @param repaymentAddress The address to repay the orders to | |||
/// @param orderIDs The IDs of the orders to settle | |||
function initiateSettlement(bytes32 repaymentAddress, bytes memory orderIDs) public payable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would also be nice to change _settleOrder to tally the amount to send and modify order status in the same loop like in the cosmwasm side for symmetry and to prevent the duplicate orderID issue at message receive independently of the message send implementation. Will leave it up to your discretion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you're right, I updated this
PR to address findings found in our audit, the document can be found in our Telegram chat with them.