Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pendle #364

Merged
merged 11 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified arb.db
Binary file not shown.
Binary file modified ethereum.db
Binary file not shown.
Binary file modified op.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,6 @@ export abstract class AaveBasePoolAdapter implements IProtocolAdapter {
const metadataObject: ProtocolToken[] = []

const promises = reserveTokens.map(async ({ tokenAddress }) => {
const reserveConfigurationData =
await protocolDataProviderContract.getReserveConfigurationData(
tokenAddress,
)

if (
!reserveConfigurationData.isActive ||
reserveConfigurationData.isFrozen
) {
return
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So... we want to show inactive and frozen pools?

I don't remember why we added this in the first place. Is there any example that wasn't showing before?


const reserveTokenAddresses =
await protocolDataProviderContract.getReserveTokensAddresses(
tokenAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
{
"address": "0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a",
"name": "aEthUSDT",
"name": "Aave Ethereum USDT",
"symbol": "aEthUSDT",
"decimals": 6,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"type": "underlying",
Expand Down Expand Up @@ -102,7 +102,7 @@
},
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"type": "underlying",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
{
"address": "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110",
"name": "ezETH",
"name": "Renzo Restaked ETH",
"symbol": "ezETH",
"decimals": 18,
"type": "underlying",
Expand All @@ -59,7 +59,7 @@
},
{
"address": "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
"name": "weETH",
"name": "Wrapped eETH",
"symbol": "weETH",
"decimals": 18,
"type": "underlying",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"type": "underlying",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
"type": "protocol",
"address": "0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9",
"name": "sENA",
"name": "Staked ENA",
"symbol": "sENA",
"decimals": 18,
"balanceRaw": "94650000000000000000n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"type": "protocol",
"address": "0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9",
"name": "sENA",
"name": "Staked ENA",
"symbol": "sENA",
"decimals": 18,
"totalSupplyRaw": "387294739423437047879124231n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tokens": [
{
"address": "0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9",
"name": "sENA",
"name": "Staked ENA",
"symbol": "sENA",
"decimals": 18,
"balanceRaw": "148345860000000000000000n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9",
"name": "sENA",
"name": "Staked ENA",
"symbol": "sENA",
"decimals": 18,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"transactionHash": "0xdc1441a209ae39844cd1930093f2be0231e0c8f10ca6c66fb409cda8be0db7ba",
"protocolToken": {
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18
},
"tokens": [
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"balanceRaw": "2100862289939429413866n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tokens": [
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"balanceRaw": "7870541785346265726254504n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"baseRate": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0x9D39A5DE30e57443BfF2A8307A4256c8797A3497",
"name": "sUSDe",
"name": "Staked USDe",
"symbol": "sUSDe",
"decimals": 18,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tokens": [
{
"address": "0x7223442cad8e9cA474fC40109ab981608F8c4273",
"name": "weETHk",
"name": "King Karak LRT",
"symbol": "weETHk",
"decimals": 18,
"balanceRaw": "440147724479119600782n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0x7223442cad8e9cA474fC40109ab981608F8c4273",
"name": "weETHk",
"name": "King Karak LRT",
"symbol": "weETHk",
"decimals": 18,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tokens": [
{
"address": "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
"name": "weETH",
"name": "Wrapped eETH",
"symbol": "weETH",
"decimals": 18,
"balanceRaw": "3818222812111817n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
"name": "weETH",
"name": "Wrapped eETH",
"symbol": "weETH",
"decimals": 18,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"transactionHash": "0x635de742e30c1db4ba80730667e99d9dc276fc072afc6cf3e1b7b76c2d2cbe8e",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -39,7 +39,7 @@
"transactionHash": "0x3cbad0364620c2591fd908a4b0fe9bbf7dda877f82829e7ee4ea992abfd0e2c3",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -62,7 +62,7 @@
"transactionHash": "0xf8607128306c74d91b9f6497dc774e1066b0751de459db1cca353816b09f63a3",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -85,7 +85,7 @@
"transactionHash": "0x18bcfaa29194f4b27048d4abd4f54d4e42d5d90cc57d1be3f7e07addb38513af",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -108,7 +108,7 @@
"transactionHash": "0xfdf55791033e15c53be84a6639f385b458c1418fcc436358726bde3352079cdf",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tokens": [
{
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8,
"balanceRaw": "1n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tokens": [
{
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8,
"type": "protocol",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"transactionHash": "0x773ee4439f7fd9660b54d8f2a6e185468bb7166ff8af41f26dded47a25143299",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -39,7 +39,7 @@
"transactionHash": "0x7b5c05754cedcbb033aeb06819b6d58b88441d17017a58ac27ba021d1bb1f767",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -62,7 +62,7 @@
"transactionHash": "0x01b2bfabe0ffdce94cb3df75a4276d908d7dba615f1ff541e4e62c5530b1ccda",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand All @@ -85,7 +85,7 @@
"transactionHash": "0x9232de8bcb8c7b3b78484d108abc445b30e5d3b1818dff39e1cb0cbdd1eaef87",
"protocolToken": {
"address": "0x465a5a630482f3abD6d3b84B39B29b07214d19e5",
"name": "fUSDC",
"name": "Flux USDC",
"symbol": "fUSDC",
"decimals": 8
},
Expand Down
Loading