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

Ep/be 154 controller rafactoring exchange rate borrow stored #32

Merged

Conversation

Apollo50
Copy link
Contributor

Description:

Replace fns convert_from_wrapped/convert_to_wrapped/get_exchange_rate/calculate_exchage_rate/get_underlying_by_wrapped/get_wrapped_by_underlying/ from controller to pool.
Remove field current_exchange_rate from "pool" struct in liquidity-pools pallet.
Fix tests acoording to changes above.

Changes in storage:

liquidity-pools:
stuct pools {
...
current_exchange_rate - REMOVED
...
}

…ap_by_underlying/get_underlying_by_wrap from controller to pool. Clean up Errors in controller pallet.
…t_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.
…rate-borrow-stored

# Conflicts:
#	pallets/minterest-protocol/src/lib.rs
@Apollo50 Apollo50 merged commit 5bcc549 into master Jan 21, 2021
@Apollo50 Apollo50 deleted the EP/BE-154-Controller-rafactoring-exchange-rate-borrow-stored branch January 21, 2021 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants