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

Depositor obtains BaseWrapper balance on pull deposit #533

Open
skeletor-spaceman opened this issue Apr 13, 2022 · 1 comment
Open

Depositor obtains BaseWrapper balance on pull deposit #533

skeletor-spaceman opened this issue Apr 13, 2022 · 1 comment

Comments

@skeletor-spaceman
Copy link

afterBal should be changed to deposited

if (depositor != address(this) && afterBal > 0) SafeERC20.safeTransfer(token, depositor, afterBal);

also, pull boolean should be immutable, not sure there is a usecase for both pull and non-pull deposits

@westonnelson
Copy link

I agree this is a bit confusing: perhaps using updatedBal or depositorBal might make this even more clear.

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

No branches or pull requests

2 participants