-
Notifications
You must be signed in to change notification settings - Fork 559
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
Convert rebase token amount when calculate swap amount for StableAsset #2169
Conversation
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.
Another way to handle the rebase token is to create another implementation of StableAsset that wraps the original one and handle the rebase logic there.
You are right, it's better to add a wrapper to hide the processing logic, and it will be easier to use for other pallet modules. |
…a into fee_distribution * 'fee_distribution' of ssh://github.com/AcalaNetwork/Acala: (31 commits) update polkadot-v0.9.23 (#2183) make sure acala precompiles are called only from other contracts (#2202) remove AccountId from XcmFeeToTreasury Acala XcmFeeToTreasury fix precompile array encode & other improvements (#2196) move HomaTreasuryPalletId to common update loan proxy type (#2200) Add bifrost (#2199) fix benchmark build_pool_percents helper method benchmark update to v0.9.22 refactor weight trader (#2178) fix with_fee_currency (#2194) Support arm64 (#2107) add Homa to ProxyType (#2191) disable with_fee_paid_by (#2187) Convert rebase token amount when calculate swap amount for StableAsset (#2169) 2.7.0 (#2186) fix origin of erc20 xtokens transfer (#2180) ... # Conflicts: # modules/cdp-engine/src/lib.rs
No description provided.