v0.3.0
Chores
- 161f125: Revert "feature(currency): new ticker for USDC"
- bump versions to bring the new Usdc ticker
Upgrade from v0.2.29
A list of smart contract migrations has to be applied on a chain with the help of gov proposals. The ones in the same section may be run together. The fees are left empty letting the operator fine-tune.
Store the new code of Lease, Leaser, Lpp, Oracle, Profit, and Rewards Dispatcher contracts
IMPORTANT! They all should have --run-as <admin contract address>
and with their respective --code-hash <code hash>
, where <code hash>
is the binary's SHA256 hash.
Pass the Admin contract, with --instantiate-anyof-addresses nolus1gurgpv8savnfw66lckwzn4zk7fp394lpe667dhu7aw48u40lj6jsqxf8nd
, when preparing the store code proposals of any contract except the Lease one, and the Leaser contract, with --instantiate-anyof-addresses nolus1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8s5gg42f
, in the case of the Lease contract.
Update the contracts via the Admin contract
nolusd tx gov submit-proposal sudo-contract <admin contract addr> '{"migrate_contracts":{"release":"v0.3.0-2023-06-13T10:13+00:00","migration_spec":{"dispatcher":{"code_id":<Rewards Dispatcher code id>,"migrate_msg":"{}"},"lpp":{"code_id":<Lpp code id>,"migrate_msg":"{}"},"oracle":{"code_id":<Oracle code id>,"migrate_msg":"{}"},"leaser":{"code_id":<Leaser code id>,"migrate_msg":"{}"},"profit":{"code_id":<Profit code id>,"migrate_msg":"{}"}},"post_migration_execute":{"leaser":"{\"migrate_leases\":{\"new_code_id\":\"<Lease code id>\",\"max_leases\":1000}}"}}}' --title "Migrate contracts (v0.3.0)" --description "Migrate contracts to their version at release v0.3.0" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls```