aave / aave-utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transaction builder for lending pool

foodaka opened this issue · comments

Background:
The tx builder in AAVEJS. A private package that we open sourced. Migrated https://github.com/aave/aave-js/tree/master/src/tx-builder into Aave JS.

If you want to interact with the protocol there are specific requirements. A lot of these methods have many parameters. Ie specify which pool, credit delegation, borrow, flashloan, etc.

The tx builder allows you to expose an easy to use and type interface to interact with the Aave protocol.

  • Deposit
  • Borrow
  • ....

Problem: This was built for Aave v1 and for graph data. Most times you get data from RPC and not the graph data. Currently we are transforming the slim RPC data back to nested graph structure so can use older helper functions. They will split the up the configuration file https://github.com/aave/aave-js/blob/master/src/tx-builder/config/defaultConfig.ts#L3 . Plan is to expose single service for lending pool, incentives, governance, staking, swapping.