Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 2 additions & 1 deletion projects/invariant-group/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const configs = {
'0x614eb485de3c6c49701b40806ac1b985ad6f0a2f', '0xD172B64AA13d892bb5EB35f3482058eAE0BC5B2a',
]
}
}
}
};

module.exports = getCuratorExport(configs)
37 changes: 29 additions & 8 deletions projects/reservoir-protocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const config = {
// '0x31Eae643b679A84b37E3d0B4Bd4f5dA90fB04a61', - exluded RUSD because it is project's own token
],
berachain: [],
plasma: []
plasma: [],
arbitrum: []
}

const assets = {
Expand Down Expand Up @@ -91,6 +92,10 @@ Object.keys(config).forEach(chain => {

api.add('0x4c9EDD5852cd905f086C759E8383e09bff1E68B3', shareBalance)

shareBalance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0xe6A934089BBEe34F832060CE98848359883749B3', params: ['0x5563CDA70F7aA8b6C00C52CB3B9f0f45831a22b1'] })

api.add('0x4c9EDD5852cd905f086C759E8383e09bff1E68B3', shareBalance)

return api.getBalances()
}
}
Expand All @@ -100,17 +105,14 @@ Object.keys(config).forEach(chain => {
tvl: async (api) => {

let balance;
// 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: '0x7519403E12111ff6b710877Fcd821D0c12CAF43A', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] })

// balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0xd8f824d4252caE7d5E49B95d47B0EfAfe6f2d570', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] })
api.add('0x5E2d083417D12d4B0824E14Ecd48D26831F4Da7D', balance)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont think this is an erc20

Copy link
Collaborator

Choose a reason for hiding this comment

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

please use the token address from which the balance is being read. If we dont have pricing for that asset we can add it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing. Done!


// api.add('0xd8f824d4252caE7d5E49B95d47B0EfAfe6f2d570', balance)

// balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0x7519403E12111ff6b710877Fcd821D0c12CAF43A', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] })
balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0xa9C251F8304b1B3Fc2b9e8fcae78D94Eff82Ac66', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] })

api.add('0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34', balance)
api.add('0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb', balance)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the token here should be 0xa9C251F8304b1B3Fc2b9e8fcae78D94Eff82Ac66

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, done. Although it did lower the TVL?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the token which balance is being read so I assume thats right? Token price is about 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, but probably a bit higher because of yield.


balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0x1DD4b13fcAE900C60a350589BE8052959D2Ed27B', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] })

Expand All @@ -124,8 +126,27 @@ Object.keys(config).forEach(chain => {

api.add('0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb', balance)

balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0x5D72a9d9A9510Cd8cBdBA12aC62593A58930a948', params: ['0x9A319b57B80c50f8B19DB35D3224655F3aDd8E4f'] })

api.add('0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb', balance)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the token here should be 0x5D72a9d9A9510Cd8cBdBA12aC62593A58930a948

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, done. Although it did lower the TVL?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the token which balance is being read so I assume thats right? Token price is about 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, but probably a bit higher because of yield.


return api.getBalances()
}
}
}
else if (chain === 'arbitrum') {
module.exports[chain] = {
tvl: async (api) => {

let balance;

balance = await api.call({ abi: 'function balanceOf(address) view returns (uint256)', target: '0x5c0C306Aaa9F877de636f4d5822cA9F2E81563BA', params: ['0x289C204B35859bFb924B9C0759A4FE80f610671c'] })

api.add('0x5c0C306Aaa9F877de636f4d5822cA9F2E81563BA', balance)

return api.getBalances()

}
}
}
})
Loading