Skip to content
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

Merged
merged 14 commits into from
Nov 6, 2024
Merged

Address audit issues #5

merged 14 commits into from
Nov 6, 2024

Conversation

thal0x
Copy link
Member

@thal0x thal0x commented Oct 29, 2024

PR to address findings found in our audit, the document can be found in our Telegram chat with them.

@thal0x thal0x changed the title Jw/address audit findings Address audit issues Oct 29, 2024
@thal0x thal0x self-assigned this Oct 29, 2024
@thal0x thal0x marked this pull request as ready for review October 29, 2024 16:18
@thal0x thal0x requested a review from a team as a code owner October 29, 2024 16:18
Copy link
Contributor

@dhfang dhfang left a 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 {
Copy link
Contributor

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.

Copy link
Member Author

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

@thal0x thal0x merged commit 5c41bd4 into main Nov 6, 2024
6 checks passed
@thal0x thal0x deleted the jw/address-audit-findings branch November 6, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants