Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ep/be 154 controller rafactoring exchange rate borrow stored (#32)
* [BE-154] Replace fns get_exchange_rate/calculate_exchange_rate/get_wrap_by_underlying/get_underlying_by_wrap/convert_from_wrapped/convert_to_wrapped from controller to pool. Clean up Errors in controller pallet. * [BE-154] Refactor controller && minterest-protocol according to changes * [BE-154] Fix mock files for each pallet. Replace tests for fns convert_to_wrapped/convert_from_wrapped/calculate_exchange_rate/get_exchange_rate/get_wrapped_by_underlying/get_underlying_by_wrapped. Fix protocol tests && integration tests according to changes in main code. * [BE-154] Remove current_exchange_rate from pool struct && setter && test for this parameter. * [BE-154] Fix some tests according to current_exchange_rate removing
- Loading branch information
Showing
12 changed files
with
294 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.