Skip to content

Releases: nolus-protocol/nolus-money-market

v0.3.2

07 Aug 06:52
Compare
Choose a tag to compare

Features

  • currencies: introduce AKT, AXL, Q_ATOM, STK_ATOM, STRD, INJ, SCRT, CRO, JUNO, EVMOS, STARS, MARS
  • profit: Add Nls reserve for IBC fee
  • dex: guaranteed delivery of responses
  • dex: more and better error messages
  • dex: move ICA open into the Dex state machine
  • lease: intro 'heal' at open state
  • lease: intro 'heal' at transfer_in_finish state

Bug Fixes

  • profit: BuyBack on_coins logic correction
  • lease: send profit on liquidation
  • lease: send the surplus to profit on full liquidation
  • oracle: alarms_below -> alarms_above_or_equal

Code Refactoring

  • lease: decouple state::Handler from api::ExecuteMsg
  • integration_tests: Refactored to put a layer of abstraction
  • integration_tests: Refactored test_case module and integration tests
  • lpp/test: Refactored tests to not build unnecessary vectors
  • Use type-state for contract addesses
  • tests: Refactor TestCase and related
  • tests: Removed #[inline] attribute
  • Elide implicit lifetimes
  • Consume result
  • lease: intro ContractApi
  • sdk: Custom/Wrapped -> InterChain
  • profit/tests: Use new names from sdk
  • tests: Refactored testing module interfaces
  • tests: Adjusted integration tests accordingly
  • tests: Moved trait from sdk to int. tests
  • tests: Split test_case.rs into submodules
  • Removed too long explicit type annotations
  • tests: open_ica -> send_open_ica_response
  • tests: Separate ICA opening into functions
  • tests:Split off do_swap from ICA opening
  • Removed unnecessary &s
  • tests: Rename APIs to use response instead
  • tests: Split init_profit into static methods
  • access-control: simplify the impl
  • tests: Added max_ltd to query_quote
  • tests/lease: Send manually on IBC msg
  • tests: Pass value for max_ltd
  • tests/leaser: Start with reserve
  • tests/profit: Unnecessary annotations
  • tests/profit: Send funds on IBC messages
  • tests/lease: Start with custom reserve
  • tests/lease: Simplify function signature
  • tests/lease: Separate repay functions
  • tests/lease: Separate close functions
  • tests/lease: Precalculate DownP==Lease
  • tests: Better reflect responsibilities
  • Implemented Display instead of AsRef<str>
  • lease: start using the access-control lib
  • dex: update the start local_remote state
  • marketprice: Remove generic Std errors
  • Minify API requirements in versioning
  • oracle: Remove generic Std errors
  • lease: Use blocks instead of variables
  • Added tree base as a parameter to macro
  • Error message: Context -> Cause
  • Removed ContractError::Std variant
  • Removed added getters & into_amount
  • Add StdError -> ContractError argument

Continuous Integration

  • Check release profile binaries instead
  • Temporarily disable size check

Chores

  • lease: migrate v4->v5

Upgrade from v0.3.1

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, Oracle, and Profit 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.2-2023-08-03T21:05+00:00","migration_spec":{"leaser":{"code_id":<Leaser code id>,"migrate_msg":"{}"},"oracle":{"code_id":<Oracle 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.2)" --description "Migrate contracts to their version at release v0.3.2" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls```

v0.3.1

29 Jun 12:57
Compare
Choose a tag to compare

Bug Fixes

  • price alarms: go over alarms for all prices
  • price alarms: Above price not removed [#118]

Code Refactoring

  • lpp: get rid of unnecessary error return
  • currency: take it out from finance
  • sdk: Unused git key on neutron-sdk [#120]
  • Remove address from alarm response [#121]
  • timealarm: get rid of 'as_stub'

Tests

  • Added assertions to new test #118

Chores

  • Bumped up contract version [#118]
  • Updated package versions [#118]
  • Bumped up used Rust version locally [#120]
  • Updated workspace-optimizer's version [#120]
  • Updated dependencies [#120]
  • Updated contract versions [#121]
  • satisfy the stricter liner v1.69

Upgrade from v0.3.0

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, 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.1-2023-06-29T11:59+00:00","migration_spec":{"dispatcher":{"code_id":<Rewards Dispatcher code id>,"migrate_msg":"{}"},"oracle":{"code_id":<Oracle 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.1)" --description "Migrate contracts to their version at release v0.3.1" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls```

v0.3.0

13 Jun 12:04
Compare
Choose a tag to compare

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```

v0.2.29

12 Jun 16:37
Compare
Choose a tag to compare

Features

  • lease: skip liquidations on less than a minimum amount [#111]
  • currency: new ticker of Usdc

Bug Fixes

  • profit: remove the obsolete migration

Upgrade from v0.2.27

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 contracts --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.2.29-2023-06-12T15:26+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.2.29)" --description "Migrate contracts to their version at release v0.2.29" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls```

v0.2.28

09 Jun 13:27
Compare
Choose a tag to compare

Bug Fixes

Styles

Code Refactoring

Chores

Commits

Upgrade from v0.2.27

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 Profit contract

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 Leaser contract --instantiate-anyof-addresses nolus1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8s5gg42f when storing the Lease contract and --instantiate-anyof-addresses nolus1gurgpv8savnfw66lckwzn4zk7fp394lpe667dhu7aw48u40lj6jsqxf8nd otherwise.

Update the contracts via the Admin contract

nolusd tx gov submit-proposal sudo-contract <admin contract addr> '{"migrate_contracts":{"release":"v0.2.28-2023-06-09T11:09+00:00","migration_spec":{"profit":{"code_id":<Profit code id>,"migrate_msg":"{}"}},"post_migration_execute":{}}}' --title "Migrate contracts (v0.2.28)" --description "Migrate contracts to their version at release v0.2.28" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls

v0.2.27

08 Jun 16:14
Compare
Choose a tag to compare

Features

  • currency: intro Nls as a means for payments (Gancho Manev)

Bug Fixes

Chores

Upgrade from v0.2.26

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, Rewards Dispatcher and Oracle 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 Leaser contract --instantiate-anyof-addresses nolus1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8s5gg42f when storing the Lease contract and --instantiate-anyof-addresses nolus1gurgpv8savnfw66lckwzn4zk7fp394lpe667dhu7aw48u40lj6jsqxf8nd otherwise.

Update the contracts via the Admin contract

nolusd tx gov submit-proposal sudo-contract <admin contract addr> '{"migrate_contracts":{"release":"v0.2.27-2023-06-08T12:44+00:00","migration_spec":{"oracle":{"code_id":<Oracle code id>,"migrate_msg":"{}"}, "dispatcher":{"code_id":<Rewards Dispatcher code Id>, "migrate_msg":"{}"}},"post_migration_execute":{"leaser":"{\"migrate_leases\":{\"new_code_id\":\"<Lease code id>\",\"max_leases\":1000}}"}}}' --title "Migrate contracts (v0.2.27)" --description "Migrate contracts to their version at release v0.2.27" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls

Upgrade from v0.2.25

Follow the instructions for the upgrade to v0.2.26 using the build artifacts and "release" from this release.

v0.2.26

05 Jun 12:55
Compare
Choose a tag to compare

Features

Bug Fixes

Documentation

Styles

Code Refactoring

Read more

v0.2.25

23 May 11:57
Compare
Choose a tag to compare

Bug Fixes

Tests

  • lpp: add a test on interest rate calculation (Gancho Manev)

Chores

Commits

v0.2.24

19 May 11:42
Compare
Choose a tag to compare

Features

Bug Fixes

Styles

Code Refactoring

Tests

Chores

Commits

Store the new code of all 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 --instantiate-anyof-addresses <admin contract address> when preparing the store code proposals of any contract except the Lease one and --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.2.24-2023-05-19T11:09+00:00","admin_contract":{"code_id":<Admin code id>,"migrate_msg":"{}"},"migration_spec":{"dispatcher":{"code_id":<Rewards Dispatcher code id>,"migrate_msg":"{}"},"leaser":{"code_id":<Leaser code id>,"migrate_msg":"{}"},"lpp":{"code_id":<Lpp code id>,"migrate_msg":"{}"},"oracle":{"code_id":<Oracle code id>,"migrate_msg":"{}"},"profit":{"code_id":<Profit code id>,"migrate_msg":"{\"owner\":\"<admin_contract_addr>\", \"oracle\":\"nolus1436kxs0w2es6xlqpp9rd35e3d0cjnw4sv8j3a7483sgks29jqwgsv3wzl4\", \"timealarms\":\"nolus1zwv6feuzhy6a9wekh96cd57lsarmqlwxdypdsplw6zhfncqw6ftqmx7chl\"}"},"timealarms":{"code_id":<TimeAlarms code id>,"migrate_msg":"{}"},"treasury":{"code_id":<Treasury code id>,"migrate_msg":"{}"}},"post_migration_execute":{"leaser":"{\"migrate_leases\":{\"new_code_id\":\"<Lease code id>\",\"max_leases\":<max_len_first_batch>}}"}}}' --title "Migrate contracts (v0.2.24)" --description "Migrate contracts to their version at release v0.2.24" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls

Migrate the Leases left after the initial migration

Check the event wasm-migrate-leases for key contunuation-key. If it is present it contains the key that should be provided with the next proposal. Otherwise, the key is status with a value done. That indicates that there are no more leases for migration.

nolusd tx gov submit-proposal sudo-contract <admin contract addr> '{"migrate_contracts":{"release":"v0.2.24-2023-05-19T11:09+00:00","admin_contract":{},"migration_spec":{},"post_migration_execute":{"leaser":"{\"migrate_leases_cont\":{\"key\":\"<continuation_key>\",\"max_leases\":<max_len_next_batch>}}"}}}' --title "Migrate <X> Lease contracts (v0.2.24)" --description "Migrate a next batch of Lease contracts to their version at release v0.2.24" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls

v0.2.22

06 Apr 07:53
Compare
Choose a tag to compare

Features

Bug Fixes

Documentation

Styles

Code Refactoring

Tests

Chores

Commits

  • 3fb5a41: refactor!: Moved privileged execute commands to sudo handler (Kiril Mihaylov) #58
  • f914d89: refactor!(leaser): Refactored to only allow migration through execute & Adjusted tests accordingly (Kiril Mihaylov) #58
  • 4b951c4: feat(timealarms)!: single alarm per addres...
Read more