-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lending Feedback #82
Comments
we do not have liquidation implemented, i have not read details of liquidation on other protocols yet, so not clear for me it relation to DEX. for oracle decimal point. in solana each currency has decimal point build in. should we look into orml or some other oracle and or acala to see how that stuff is handled? about rate mode - sure - can unify with trait. about many lines, i prefer one big logical condition with all rules and one return, that may not seems same for team. |
Basically, sell the collateral on the DEX for the best price possible, once the collateral passes some price point. Need to obtain at least the lent out stablecoins as return values.
This probably depends on the underlying currency pallet being used. Afaik https://docs.rs/orml-currencies/0.4.0/orml_currencies/module/struct.Pallet.html does not expose metadata about a currency, such as the name or the decimal point. |
for oracle decimals. may be lending should operate in planks, satoshi, lamports realms, so it can be decimals oblivion. |
Right now it works just like dictionary with values and with updated summary of total. There is no usage of
In Parallel Finance that was just StorageMap, in Warp v2 it was ERC-20 Token. So we just used tokens. There is no use of that token as some currency yet. |
things seems done, currency stuff discussed in slack and moved as some part task to click up |
traits/oracle.rs
https://github.com/ComposableFi/composable-pallets/blob/649cf366adffa53f8ab1d1c593b3b34cca3b4dff/frame/composable-traits/src/oracle.rs#L3-L16
traits/lending.rs
traits/liquidation
Spelling of filename is incorrect ;)
I do not think that the lending protocol is capable of determining the fee, as that is dex specific.
https://github.com/ComposableFi/composable-pallets/blob/649cf366adffa53f8ab1d1c593b3b34cca3b4dff/frame/composable-traits/src/liquidatation.rs#L14-L16
liquidate
, and the implementer handles fee computation etc.traits/rate_model.rs
get_borrow_rate
.https://github.com/ComposableFi/composable-pallets/blob/649cf366adffa53f8ab1d1c593b3b34cca3b4dff/frame/composable-traits/src/rate_model.rs#L386
https://github.com/ComposableFi/composable-pallets/blob/903c455ef72f84e405b74e1a193d4077bf6bffa4/frame/lending/src/lib.rs#L239
MarketDebtCurrency
work?The text was updated successfully, but these errors were encountered: