v9 Testing Discussion #1543
Replies: 5 comments
-
We also need to test sending a txfee in a non-osmo asset, and whether that manifests in that coin getting swapped at epoch and going to stakers |
Beta Was this translation helpful? Give feedback.
-
Test osmo tx feeval osmo1phaxpevm5wecex2jyaqty2a4v02qj7qmlmzk5a Stake test1 to val
9644900162BDAF85059442F945367516BC98BFF9A9EF9DBC6849638BAEB275AF Send a regular tx from val to test2 with 5000000uosmo fees
Check test1 rewards pre epoch and pre tx send(epoch 2 started block 13)
Check test1 rewards pre epoch and post tx send(epoch 2 started block 13)
Check val rewards pre epoch and pre tx send(epoch 2 started block 13)
Check val rewards pre epoch and post tx send(epoch 2 started block 13)
test1 rewards from fees: 2205000 Test osmo tx fee (test 2 due to missing amount)Send a regular tx from test2 to test3 with 5000000uosmo fees
Check test1 rewards pre epoch and pre tx send(epoch 67 started block 787)
Check test1 rewards pre epoch and post tx send(epoch 67 started block 787)
Check val rewards pre epoch and pre tx send(epoch 67 started block 787)
Check val rewards pre epoch and post tx send(epoch 67 started block 787)
test1 rewards from fees: 68355000-66150000=2205000 Test ion tx feeNeed to first create a osmo/ion pool, then add to tx fee whitelist {
"weights": "5uion,5uosmo",
"initial-deposit": "50000000uion,50000000uosmo",
"swap-fee": "0.01",
"exit-fee": "0.01",
"future-governor": ""
}
Add to tx fee whitelist (had to fix the command since it didn't work, PR up right now #1546)
Deposit Vote Check it got added
Send a regular tx from test2 to test3 with 5000000uion fees
Check test1 rewards pre epoch and pre tx send(epoch 118 started block 1394)
Check test1 rewards pre epoch and post tx send(epoch 118 started block 1394)
Check test1 rewards post next epoch and post tx send(epoch 119 started block 1406)
Check val rewards pre epoch and pre tx send(epoch 118 started block 1394)
Check val rewards pre epoch and post tx send(epoch 118 started block 1394)
Check val rewards post next epoch and post tx send(epoch 119 started block 1406)
test1 rewards from fees: val rewards from fees: 5000000uion made it to pool, 4504094uosmo came out Total: 3972610 There is only two delegators (the validator itself and the test1 account) as shown below:
|
Beta Was this translation helpful? Give feedback.
-
Test superfluid votingFirst we have to set superfluid asset thru prop
Deposit Vote Lock tokens for same as unbonding time
Lock ID from this is 1 Create SFS from this lock
Create a text prop Deposit Vote yes on validator Vote no on sfs address (only has sfs, no regular stake) Show results from vote
SFS did not overwrite validator vote Lets look at all delegations to validator
First address is the validator self delegation, second address should be the SFS delegation, third address is the test1 delegation Lets figure out what that second address is from. Its the intermediary account:
|
Beta Was this translation helpful? Give feedback.
-
Token FactorySuccessful token creation
Will test the rest of this module soon |
Beta Was this translation helpful? Give feedback.
-
GAMM TestsV9Create a 50/50 Pool {
"weights": "5uion,5uosmo",
"initial-deposit": "50000000uion,50000000uosmo",
"swap-fee": "0.01",
"exit-fee": "0.01",
"future-governor": ""
}
Create a 60/40 Pool {
"weights": "6uion,4uosmo",
"initial-deposit": "60000000uion,40000000uosmo",
"swap-fee": "0.01",
"exit-fee": "0.01",
"future-governor": ""
}
Single asset LP ION to pool1 (test7)
Single asset LP OSMO to pool1 (test8) Single asset LP ION to pool2 (test9) Single asset LP OSMO to pool2 (test10) Exit 50 percent of initial from pool1 (test2) Exit 50 percent of initial from pool2 (test3) F049C4BA87BBD31500E9A797E8F6D89C747B2BFD6A74647001110A399DA6197E Query all pools again
Query balance of test1 wallet:
Test a swap-exact-amount-inSwap 5 osmo for a minimum of 4 ion
I received 4.3 ion when I requested of a minimum of 4 ion. It checks out. Lastly, query the pool one more time to ensure nothing looks off:
Post swap
Ion increased by 4340171 Osmo decreased by -5000000 V8Create a 50/50 Pool {
"weights": "5uion,5uosmo",
"initial-deposit": "50000000uion,50000000uosmo",
"swap-fee": "0.01",
"exit-fee": "0.01",
"future-governor": ""
}
Create a 60/40 Pool {
"weights": "6uion,4uosmo",
"initial-deposit": "60000000uion,40000000uosmo",
"swap-fee": "0.01",
"exit-fee": "0.01",
"future-governor": ""
}
Single asset LP ION to pool1 (test7)
Single asset LP OSMO to pool1 (test8) Single asset LP ION to pool2 (test9) Single asset LP OSMO to pool2 (test10) Exit 50 percent of initial from pool1 (test2) Exit 50 percent of initial from pool2 (test3) AF6C8A2757D01139F7A6C14B74ABFC1B8E5017E188973431057385689177A635 Query all pools again
|
Beta Was this translation helpful? Give feedback.
-
A list of things we want to test for the v9 upgrade:
Beta Was this translation helpful? Give feedback.
All reactions