The adapter calculates APY Finance total value locked
The adapter takes the following environment variables:
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | ETHEREUM_RPC_URL |
The Ethereum blockchain RPC endpoint to get the needed on-chain data | ||
ETHEREUM_CHAIN_ID |
The chain id to connect to | 1 | ||
✅ | REGISTRY_ADDRESS |
|||
DEFAULT_QUOTE |
Currency that the price will be fetched by default. | USD |
Additional environment variables must be set according to the Token Allocation adapter. This composite adapter executes the code from the Token Allocation composite adapter. As such the same configuration and input parameters apply to this adapter. See ../../non-deployable/token-allocation/README.md for more details.
See the Composite Adapter README for more information on how to get started.
{
"jobID": "1",
"data": {
"source": "coingecko"
}
}
{
"jobRunID": "1",
"data": {
"sources": [],
"payload": {
"DAI": {
"quote": {
"USD": {
"price": "1.00750541"
}
}
},
"USDC": {
"quote": {
"USD": {
"price": "0.99465161"
}
}
},
"USDT": {
"quote": {
"USD": {
"price": "1.00064981"
}
}
}
},
"result": 18469823.762145024
},
"result": 18469823.762145024,
"statusCode": 200
}