zeriontech / defi-sdk

DeFi SDK Makes Money Lego Work
https://docs.zerion.io/defi-sdk/
GNU Lesser General Public License v3.0
790 stars 249 forks source link

Add Amun lending adapters #156

Closed loki-sama closed 3 years ago

loki-sama commented 3 years ago

Adds Amun lending simple and interactive adapters Adds tests for adapters

sobolev-igor commented 3 years ago

For our system to work properly, components returned by token adapter should be the same as returned tokens in withdraw() function of interactive adapter. So, you need to use function returning yTokens in withdraw() or calculate rate to underlying stablecoin in token adapter.

loki-sama commented 3 years ago

There is only one lending token: 0x78f9c12e15ec36C2AB1bE0b2e5f79B71A9ECdFC8