NFT-collateralized lending protocol: borrow ETH against NFTs instantly, lend into vaults, buy discounted NFTs from liquidated loans.
Astaria was an NFT-collateralized lending protocol on Ethereum, pitched on its site as instant liquidity for NFTs. Holders of NFTs from select collections could borrow ETH against them, lenders deposited ETH into vaults to earn yield on other people's loans, and NFTs from liquidated loans went to auction, where buyers could pick up blue chip pieces at a discount.
Data Subsystems worked on both sides of the platform, alongside Astaria's in-house engineers. The infrastructure was built on AWS: a load balancer, ECS, EC2, SQS, S3, Lambda, Database Migration Service, API Gateway and Amazon MSK, with on-chain data indexed through a Subgraph and StreamingFast Substreams and some tasks built on NestJS REST and GraphQL APIs. On the frontend, the team contributed to the Next.js 13 lending app.
By April 2023 the app covered borrowing, lending vaults, vault creation for strategists, auctions and liquidations, strategist profiles and a dashboard, running on Ethereum mainnet in production and the Goerli testnet in staging. Astaria has since wound down and its site is offline, so the screenshot comes from the Wayback Machine, January 2024.
Vault listings merge an off-chain vaults API with on-chain figures read in a single eth_call: a display-data helper contract is executed from its constructor without ever being deployed, returning data for many vaults at once.
Contract access leans on Astaria's own TypeScript SDK (router and vault contract factories, the offer router) plus TypeChain bindings for the display-data helper contracts.
Quality gates on commit and in CI: tests and lint-staged before each commit, Conventional Commit checks on every message, and lint, build and tests in GitHub Actions for staging and master.
The backend combined on-chain indexing (Subgraph, StreamingFast Substreams) with AWS queueing and streaming through SQS and Amazon MSK.