diff --git a/projects/deq/index.js b/projects/deq/index.js new file mode 100644 index 000000000000..c94a81032d4f --- /dev/null +++ b/projects/deq/index.js @@ -0,0 +1,23 @@ +const ADDRESSES = require('../helper/coreAssets.json') +const sdk = require('@defillama/sdk') + +const stAvailContract = ADDRESSES.ethereum.STAVAIL; + +async function eth(timestamp, ethBlock, chainBlocks) { + const pooledAvail = await sdk.api.abi.call({ + block: ethBlock, + target: stAvailContract, + abi: "uint256:assets" + }) + + return { + [ADDRESSES.ethereum.AVAIL]: pooledAvail.output + } +} + +module.exports = { + doublecounted: true, + ethereum: { + tvl: eth + }, +} diff --git a/projects/helper/coreAssets.json b/projects/helper/coreAssets.json index 9fd47702a747..233ce1a6415c 100644 --- a/projects/helper/coreAssets.json +++ b/projects/helper/coreAssets.json @@ -52,7 +52,9 @@ "USDM": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C", "PRISMA": "0xdA47862a83dac0c112BA89c6abC2159b95afd71C", "FXN": "0x365accfca291e7d3914637abf1f7635db165bb09", - "USDe": "0x4c9edd5852cd905f086c759e8383e09bff1e68b3" + "USDe": "0x4c9edd5852cd905f086c759e8383e09bff1e68b3", + "AVAIL": "0xEeB4d8400AEefafC1B2953e0094134A887C76Bd8", + "STAVAIL": "0x3742f3Fcc56B2d46c7B8CA77c23be60Cd43Ca80a" }, "fantom": { "WFTM": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",