MELD Dev Diary 15
Published in
2 min readDec 19, 2022
Borrowing & Lending
On-chain:
- Account creation with preloaded requests in the same transaction.
- Different set of risk parameters for each average of loan-to-value and liquidation threshold.
- Borrow and supply cap for each type of asset.
- Separate pool value change into receivable and payable to avoid value normalization.
- Replace
let
withplet
for optimization. - Payback to user the remaining asset after clearing all borrowing.
- Avoided duplicate pool existence check by delegating to first account.
- Liquidator repay-all request assertion when liquidating.
- Fix missing initial risk parameters.
- Experiment a Scott-encoding version of PMap.
Off-chain:
- Add creating account with pending requests to lending-API
- Creating oracle service to update oracle contract periodically with tokens’ prices fetching from external source API.
- Update services and API with risk parameters for each asset.
MELDapp:
- Integrate Web3Auth to create and restore wallets for user onboarding.
- Backend infrastructure and API to store historical transactions and asset values.
- Integration to send and receive tokens on Cardano
Infrastructure:
- VPC terraform module to setup different number of subnets and NAT gateways for production and development environments.
- Work on AWS infrastructure (terraform code) for new MELDApp backend.
Read more from the Dev Diary series here!