-
Notifications
You must be signed in to change notification settings - Fork 117
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
Fix incorrect fee math in MetaSwapUtils #469
Conversation
6a5d69f
to
8bb91d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #469 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 15 15
Lines 982 994 +12
Branches 137 139 +2
======================================
- Misses 982 994 +12
Continue to review full report at Codecov.
|
As base swaps have already been deployed, we cannot modify the current ones. Although this is more gas-costly, it allows us to keep using the same base pools.
@hermitsgame Nice catch! saddle-contract/contracts/meta/MetaSwapUtils.sol Lines 824 to 829 in b00cdec
Thoughts? @ChiTimesChi |
- When swapping from meta level token to an underlying token in the base Swap tokens, scale the dy by the virtual price for correct value calculation
base pool asset to a meta level asset
…t into vp-exploit
detect any discrepencies
No description provided.