Gancho Manev
Gancho Manev
In an attempt to repay a loan with а due interest of {"amount":"432","ticker":"USDC"}, we got an overflow error on a subtraction. > nolusd tx wasm execute nolus1z5vxnwce2rjzt2r0tlu3mdsmwu0d0wxhn7e40c9pdm354qudm7qq6zy53g '{"repay":[]}' --amount 608ibc/7DABB27AEEAFC0576967D342F21DC0944F5EA6584B45B9C635A3B3C35DCDA159...
As a complement to the register, we have to provide a de-register of a selected protocol. It should: 1. query the Leaser that there are no more non-finalized Lease-s. If...
Currently, on receiving a price feed, all currencies must be known. Otherwise, the transaction fails. To manage easier feeders and the price tree, we have to tolerate unknown currencies. Prices...
We have a lease nolus14yzkfnguk2vhag7jfz0wzeqvkr53247p2fvmhmeskfzd25526k7qqarwuw that on liquidation requested a transfer-in and got the error {"error":"ABCI code: 5: error handling packet: see events for details"} with tx# 187CB419B9322FBBA984A94994704B7858741D28BAF688DE7643E19750C5BE0C. That might...
In doubtful conditions, a lease may accrue collectible overdue interest during lease opening. The contract needs to start a liquidation right at the end of the lease opening. Currently, this...
When a lease has a tiny principal due amount, the value of `overdue_collect_in: Duration` overflows when computing [`Duration::YEAR.into_slice_per_ratio(overdue_left, total_interest_a_year)`](https://github.com/nolus-protocol/nolus-money-market/blob/3b7ca2a13bc2d22d715805588a42d46c2c22f32c/protocol/contracts/lease/src/lease/due.rs#L32). For example, on Pirin, the lease `nolus1sszfhvtrj5m92t6uv9q7zh9hvz93nlttsz2reutjtj73tzqydzustzrw3w` with state {"data":{"opened":{"amount":{"amount":"198278548","ticker":"ST_ATOM"},"loan_interest_rate":93,"margin_interest_rate":40,"principal_due":{"amount":"13","ticker":"USDC"},"previous_margin_due":{"amount":"0","ticker":"USDC"},"previous_interest_due":{"amount":"0","ticker":"USDC"},"current_margin_due":{"amount":"0","ticker":"USDC"},"current_interest_due":{"amount":"0","ticker":"USDC"},"validity":"1700737179194034187","in_progress":{"repayment":{"payment":{"amount":"1","ticker":"ST_ATOM"},"in_progress":"swap"}}}}} {"BuyLpn":{"SwapExactIn":{"spec":{"lease":{"lease":{"addr":"nolus1sszfhvtrj5m92t6uv9q7zh9hvz93nlttsz2reutjtj73tzqydzustzrw3w","customer":"nolus1v8qw6hcp4wh6x9f26j4fghrh4t6d4u2e4zdw9s","position":{"amount":{"amount":"198278548","ticker":"ST_ATOM"},"spec":{"liability":{"initial":600,"healthy":830,"first_liq_warn":850,"second_liq_warn":865,"third_liq_warn":880,"max":900,"recalc_time":7200000000000},"min_asset":{"amount":"15000000","ticker":"USDC"},"min_sell_asset":{"amount":"10000","ticker":"USDC"}}},"loan":{"lpp":{"addr":"nolus1qg5ega6dykkxc307y25pecuufrjkxkaggkkxh7nad0vhyhtuhw3sqaa3c5","currency":"USDC"},"interest_payment_spec":{"due_period":604800000000000,"grace_period":172800000000000},"current_period":{"period":{"start":"1697203176839468392","length":102299214581968},"interest":40},"profit":{"addr":"nolus1mf6ptkssddfmxvhdx0ech0k03ktp6kf9yk59renau2gvht3nq2gqkxgywu"}},"time_alarms":{"addr":"nolus1zwv6feuzhy6a9wekh96cd57lsarmqlwxdypdsplw6zhfncqw6ftqmx7chl"},"oracle":{"addr":"nolus1436kxs0w2es6xlqpp9rd35e3d0cjnw4sv8j3a7483sgks29jqwgsv3wzl4","base_currency":"USDC"}},"dex":{"owner":"nolus1sszfhvtrj5m92t6uv9q7zh9hvz93nlttsz2reutjtj73tzqydzustzrw3w","host":"osmo14e6s3txtyfz4vyrssg7smvh6eck8jnehxkhjgvtyyrely0nr3u0slzzc3z","dex":{"connection_id":"connection-0","transfer_channel":{"local_endpoint":"channel-0","remote_endpoint":"channel-783"}}},"finalizer":{"addr":"nolus1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8s5gg42f"}},"payment":{"amount":"1","ticker":"ST_ATOM"}}}}}...
The aim is two-fold, (A) to decouple the money market from concrete protocols, and (B) to prepare the currencies package for easy substitution, even on compile time, as generator output....
Currently, the stubs in the system rely on the currency groups selected with some of the net_* features at the packages they are **defined in**. Since stubs are client-side modules,...
If unused, then we would get rid of those hard-to-justify dependencies to cosmwasm from some of our code packages
The [IBC message](https://ibc.cosmos.network/v8/apps/transfer/messages) does not support sending more than one coin atomically. A solution would be to send two messages in the same block. It is doable. The lease should...