Skip to content

Commit b2307af

Browse files
authored
Update Goat Protocol (DefiLlama#13440)
2 parents 6d36a07 + dcb4674 commit b2307af

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

projects/goat-protocol/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ const GOA_TOKEN_CONTRACT = '0x8c6Bd546fB8B53fE371654a0E54D7a5bD484b319';
55
const REWARD_POOL_CONTRACT = '0xAD9CE8580a1Cd887038405275cB02443E8fb88aC';
66

77
const config = {
8-
arbitrum: {}
9-
}
8+
sonic: 146,
9+
arbitrum: 42161,
10+
};
1011

1112
module.exports = {
1213
doublecounted: true,
@@ -18,8 +19,9 @@ module.exports = {
1819
Object.keys(config).forEach(chain => {
1920
module.exports[chain] = {
2021
tvl: async (api) => {
21-
const multistrategies = await getConfig('goat-protocol', `https://api.goat.fi/multistrategies`);
22-
const calls = multistrategies.filter(multistrategy => multistrategy.chain === api.chain).map(multistrategy => multistrategy.address);
22+
const res = await getConfig('goat-protocol', `https://api.goat.fi/vaults`);
23+
const multistrategies = Object.values(res.data[config[chain]]);
24+
const calls = multistrategies.map(multistrategy => multistrategy.address);
2325
return api.erc4626Sum({ calls, isOG4626: true, })
2426
}
2527
}

0 commit comments

Comments
 (0)