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

Add ERC20Bridge balance check #73

Merged
merged 3 commits into from
Oct 9, 2023
Merged

Conversation

gvladika
Copy link
Contributor

@gvladika gvladika commented Oct 5, 2023

When withdraw-and-call is used in ERC20 based chains, it is important to make sure that extra call cannot be used to move escrowed native token in any way. We enforce it by doing native token balance check for bridge before/after the extra call is executed.

… to make sure

that extra call cannot be used move escrowed native token in any way. We enforce
it by doing native token balance check for bridge before/after the extra call is
executed.
@cla-bot cla-bot bot added the s label Oct 5, 2023
src/bridge/ERC20Bridge.sol Outdated Show resolved Hide resolved
@gvladika gvladika requested a review from gzeoneth October 5, 2023 17:44
Copy link
Member

@gzeoneth gzeoneth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gzeoneth gzeoneth merged commit 7897b63 into feature-orbit-bridge Oct 9, 2023
4 checks passed
@gzeoneth gzeoneth deleted the balance-check branch October 9, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants