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

Add initial tokens to allow into Namada #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 51 additions & 7 deletions phase3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,57 @@ const IBC_TOKENS: [(
MintTokenLimit,
ThroughtputTokenLimit,
MinimumGasPrice,
); 1] = [(
"channel-0",
"uosmo",
MintTokenLimit::from_u64(10000000000),
ThroughtputTokenLimit::from_u64(10000000000),
Some(Gas::from_u64(1)),
)];
); 7] = [
(
"channel-?",
"uosmo",
MintTokenLimit::from_u64(10752692000000), // 10,752,692 OSMO
ThroughtputTokenLimit::from_u64(2150539000000), // 2,150,539 OSMO
Some(Gas::from_u64(10)), // 10 uosmo / gas unit
),
(
"channel-?",
"uatom",
MintTokenLimit::from_u64(759878000000), // 759,878 ATOM
ThroughtputTokenLimit::from_u64(151976000000), // 151,976 ATOM
Some(Gas::from_u64(1)), // 1 uatom / gas unit;
),
(
"channel-?",
"utia",
MintTokenLimit::from_u64(1018330000000), // 1,018,330 TIA
ThroughtputTokenLimit::from_u64(203666000000), // 203,666 TIA
Some(Gas::from_u64(1)), // 1 utia / gas unit;
),
(
"channel-?",
"ustosmo",
MintTokenLimit::from_u64(8196721000000), // 8,196,721 stOSMO
ThroughtputTokenLimit::from_u64(1639344000000), // 1,639,344 stOSMO
Some(Gas::from_u64(10)), // 10 ustosmo / gas unit
),
(
"channel-?",
"ustatom",
MintTokenLimit::from_u64(512821000000), // 512,821 stATOM
ThroughtputTokenLimit::from_u64(102564000000), // 102,564 stATOM
Some(Gas::from_u64(1)), // 1 ustatom / gas unit;
),
(
"channel-?",
"usttia",
MintTokenLimit::from_u64(946970000000), // 946,970 stTIA
ThroughtputTokenLimit::from_u64(189394000000), // 189,394 stTIA
Some(Gas::from_u64(1)), // 1 usttia / gas unit;
),
(
"channel-?",
"inj",
MintTokenLimit::from_u128(236295000000000000000000), // 236,295 INJ
ThroughtputTokenLimit::from_u128(47259000000000000000000), // 47,259 INJ
Some(Gas::from_u64(200000000000)), // 0.0000002 (2e-7) INJ (2e11 inj) / gas unit;
),
];

#[transaction]
fn apply_tx(ctx: &mut Ctx, _tx_data: BatchedTx) -> TxResult {
Expand Down
Loading