We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d46f458 commit cc10022Copy full SHA for cc10022
1 file changed
proposals/testnet/test-polaris-whitelist/src/lib.rs
@@ -50,8 +50,9 @@ fn apply_tx(ctx: &mut Ctx, _tx_data: BatchedTx) -> TxResult {
50
let ibc_denom = format!("transfer/{OSMO_CHANNEL_ID}/{base_token}");
51
let token_address = ibc::ibc_token(&ibc_denom).clone();
52
53
- let mint_limit = MintTokenLimit::from_u64(MINT_LIMIT * precision);
54
- let throughput_limit = ThroughtputTokenLimit::from_u64(THROUGHPUT_LIMIT * precision);
+ let factor = 10u64.pow(precision as u32);
+ let mint_limit = MintTokenLimit::from_u64(MINT_LIMIT * factor);
55
+ let throughput_limit = ThroughtputTokenLimit::from_u64(THROUGHPUT_LIMIT * factor);
56
57
let mint_limit_token_key = ibc::mint_limit_key(&token_address);
58
ctx.write(&mint_limit_token_key, mint_limit)?;
0 commit comments