-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 💡 remove BlockNumberFor * refactor: 💡 mv Timestamp to BlockNumber * fix: 🐛 test * refactor: 💡 Modify Point type * refactor: 💡 Change lock to transfer * refactor: 💡 Check for overflow * fix: 🐛 unit test * fix: 🐛 incentive * fix vpha xcm dest * fix: 🐛 fix * fix: 🐛 Event * fix: 🐛 balance_of_at * fix: 🐛 balance_of_at merge into balance_of * fix vpha remark index * feat: 🎸 salp migration * Fix migration * Configure voting-degree * V0.9.70 herry fix (#905) * fix * impl SLP SubstrateCall enum methods for ksm and dot * fix literal hex * fix clippy * add vtoken_value_op param to charge_host_fee_and_tune_vtoken_exchange_rate * Ve-minting fix (#906) * refactor: 💡 blk to block * fix: 🐛 fix * fix: 🐛 rpc * refactor: 💡 mv to polkadot runtime * fix: 🐛 _deposit_for * refactor: 💡 add_reward * fix: 🐛 add_reward * refactor: 💡 add TokenType * fix: 🐛 test * fix: 🐛 for test * change vfil token2 id (#908) * fix vpha bond shares (#909) * fix vpha transfer back dest multilocation (#911) * add-cross-in-out-pallet-to-bifrost-polkadot (#912) * Ve minting fix (#913) * refactor: 💡 blk to block * fix: 🐛 fix * fix: 🐛 rpc * refactor: 💡 mv to polkadot runtime * fix: 🐛 _deposit_for * refactor: 💡 add_reward * fix: 🐛 add_reward * refactor: 💡 add TokenType * fix: 🐛 test * fix: 🐛 for test * fix: 🐛 format * fix: 🐛 test get_rewards * fix: 🐛 get_rewards_inner * add-crossinout-bechmark-tryruntime * Ve minting fix (#915) * fix: 🐛 rm log::debug * fix: 🐛 replace saturating_mul * Fix slp polkadot xcm call encoding (#918) * fix slp polkadot xcm encoding * add unit test * Overflow (#916) * fix: 🐛 overflow * fix: 🐛 fix * test: 💍 format * remove binding requirement for entrance account (#921) * fix: 🐛 for release * fix-crossinout-change-outer-linked-account (#922) --------- Co-authored-by: herryho <herry.heyi@gmail.com> Co-authored-by: Edwin Wang <lark930@gmail.com> Co-authored-by: hqwangningbo <2536935847@qq.com> Co-authored-by: Herry Ho <45537372+herryho@users.noreply.github.com>
- Loading branch information
1 parent
3a68712
commit 5833a64
Showing
37 changed files
with
1,998 additions
and
1,387 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// This file is part of Bifrost. | ||
|
||
// Copyright (C) 2019-2022 Liebi Technologies (UK) Ltd. | ||
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 | ||
|
||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
#![cfg_attr(not(feature = "std"), no_std)] | ||
|
||
use super::{Config, RedeemPool, Weight}; | ||
use frame_support::traits::Get; | ||
use sp_runtime::traits::UniqueSaturatedInto; | ||
|
||
pub fn update_redeem_pool<T: Config>() -> Weight { | ||
RedeemPool::<T>::set(147_780_374_204_392u128.unique_saturated_into()); | ||
|
||
T::DbWeight::get().reads(1) + T::DbWeight::get().writes(1) | ||
} |
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.