diff --git a/projects/reservoir-protocol/index.js b/projects/reservoir-protocol/index.js index 9ab2b8eb6ff..b8851c2478e 100644 --- a/projects/reservoir-protocol/index.js +++ b/projects/reservoir-protocol/index.js @@ -13,6 +13,7 @@ const config = { // '0x31Eae643b679A84b37E3d0B4Bd4f5dA90fB04a61', - exluded RUSD because it is project's own token ], berachain: [], + plasma: [] } const assets = { @@ -86,6 +87,25 @@ Object.keys(config).forEach(chain => { api.add(assets['PT-USDe'], shareBalance) + return api.getBalances() + } + } + } + else if (chain === 'plasma') { + module.exports[chain] = { + tvl: async (api) => { + + let value + let balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0x7519403E12111ff6b710877Fcd821D0c12CAF43A', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] }) + + api.add('0x7519403E12111ff6b710877Fcd821D0c12CAF43A', balance) + + balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0xd8f824d4252caE7d5E49B95d47B0EfAfe6f2d570', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] }) + // value = await api.call({ abi: 'function convertToAssets(uint256) view returns (uint256)', target: '0xd8f824d4252caE7d5E49B95d47B0EfAfe6f2d570', params: [balance] }) + + api.add('0xd8f824d4252caE7d5E49B95d47B0EfAfe6f2d570', balance) + // api.add(ADDRESSES.ethereum.USDC, value) + return api.getBalances() } }