open-runtime-module-library
open-runtime-module-library copied to clipboard
Add `transfer_all` to Currencies
Changes:
- Add
transfer_allto currencies - Add test for transfer_all
Not fully understand the requirements for # 375, for tokens module there has already have transfer_all function.
Further steps:
- [ ] Need to generate correct weight for
transfer_all_non_native_currency
I think the best way is add transfer_all to https://github.com/open-web3-stack/open-runtime-module-library/blob/master/traits/src/currency.rs and use it in orml-currencies
Also update the tests to check the case when user have some locked token.
I think the best way is add
transfer_allto https://github.com/open-web3-stack/open-runtime-module-library/blob/master/traits/src/currency.rs and use it in orml-currenciesAlso update the tests to check the case when user have some locked token.
Make sense