V11 Manual Gauge Fee And Gov Prop Testing #2238
Replies: 1 comment 1 reply
-
When running Lets now try to submit a prop with no deposit
Got the following error as expected: Lets try with a deposit that is too small:
Same, error as expected: Lets try just enough deposit:
It works! I realized I want to also check what happens to the deposit if it gets past the deposit period without getting enough deposits, so need to manually change genesis again Set deposit period to 10 seconds, trying again Query test2 balance pre deposit:
After prop submit with 2500000uosmo
After 10s deposit period, prop no longer displays, lets check wallet to make sure funds are gone
They are! |
Beta Was this translation helpful? Give feedback.
-
Need to first create a osmo/ion pool
osmosisd tx gamm create-pool --from test2 --pool-file pool.json -b block --chain-id localosmosis
30B28097CEDDC4AC0D8564120B56FCE8927DE8905ECCC85420643D9A1BD91C7E
We must now check if the wallet contains gamm/pool/1
osmosisd q bank balances osmo18s5lynnmx37hq4wlrw9gdn68sg2uxp5rgk26vv
gamm/pool/1 now exists
We now need to see if this created the respective gauges via the module account
osmosisd q incentives gauges
It did!
Lets now create a gauge with test2 wallet for one of the lockable durations.
osmosisd tx incentives create-gauge gamm/pool/1 10000000uion -b block --from test2 --epochs 10 --duration 120s --chain-id localosmosis
A23551407079FF842C17E5A207526F3255B692289223972346D1B73BF8F70B15
I tried to do this with a non lockable duration and it did not work as expected (i.e. 24h in localosmosis is not a lockable duration).
Querying the bank balances again we should see a reduction of 10000000uion for the gauge itself and 50000000uosmo for the gauge creation fee
osmosisd q bank balances osmo18s5lynnmx37hq4wlrw9gdn68sg2uxp5rgk26vv
This is the case. Lets now check if the gauge was created properly
osmosisd q incentives gauge-by-id 4
It was.
Now we test add to gauge
osmosisd tx incentives add-to-gauge 4 10000000uion -b block --from test2 --epochs 5 --duration 120s --chain-id localosmosis
9139D813FBF471D5C8B975C40EAFFA92E87A21B0BD551D71173278CE7B048037
Check if it was added properly
osmosisd q incentives gauge-by-id 4
Check balance dif
osmosisd q bank balances osmo18s5lynnmx37hq4wlrw9gdn68sg2uxp5rgk26vv
Beta Was this translation helpful? Give feedback.
All reactions