MELD Dev Diary 13

Charlierobertstad
MELD
Published in
2 min readDec 5, 2022

Borrowing and Lending

Off-chain:

  • Implemented an indexer tracking UTXOs locking operator NFTs controlling manager, pool and migration.
  • Implemented oracle operator authorization via NFT instead of using pub key hash.
  • Added the asset prices map to the request body to finish Oracle API endpoint to feed market prices.
  • Check more conditions when building transactions to update the accounts at API to avoid users submitting invalid requests.
  • Implemented API to get the current state of the pool contract.
  • Separated the API documentation server from the main API server, enabling early deployment of the doc server.
  • Added description and documentation for the API schema.
  • Dockerized the API documentation server.
  • Updated CI to push the faucet server and API documentation server docker images to ECR once they are built.
  • Built builder image before application images to avoid duplicate build, which cause race condition problems and flaky build.
  • Updated batching service to support building chaining transactions when the batcher needs to handle too many accounts in a batch.

Testing:

  • Wrote some utility functions to query the latest state in integration tests to reduce test flakiness.
  • Formalized some integration tests for the batching service and add more unit tests for the set collateral request.
  • Implemented the base for functional tests to improve test writing efficiency.
  • Refactored the test user credential for more clarity.
  • Added a test case for oracle indexer.
  • Used the environment variable to run either integration or functional tests from the same executable.
  • Supported multiple test users in the integration test.

Faucet:

  • Use a dedicated test key for the lending faucet operator.

Documentation:

  • Updated lending transaction diagrams: create, update, and close account.

Infrastructure:

  • Maintenance on old infrastructure, turning off some unused RDS databases.
  • Planing cloud budget for upcoming year.
  • Fargate service for lending-api docs.
  • Configuring load balancer and target group for lending-api docs.

Read more from the Dev Diary series here!

--

--