Skip to content
Merged
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
20 changes: 20 additions & 0 deletions projects/reservoir-protocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config = {
// '0x31Eae643b679A84b37E3d0B4Bd4f5dA90fB04a61', - exluded RUSD because it is project's own token
],
berachain: [],
plasma: []
}

const assets = {
Expand Down Expand Up @@ -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()
}
}
Expand Down
Loading