-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add uniBTC adapter * sum underlyings tokens in vault instead of uniBTC * add native btc addresses * rm address on merlin * add native + wbtc tokens coreAssets * use address null --------- Co-authored-by: Trisome-Bedrock <trisome@bedrock-technology> Co-authored-by: 0xpeluche <[email protected]>
- Loading branch information
1 parent
00d4328
commit 02687bb
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const ADDRESSES = require('../helper/coreAssets.json') | ||
const defaultVault = '0xF9775085d726E782E83585033B58606f7731AB18' | ||
|
||
const config = { | ||
ethereum: { | ||
vault: '0x047D41F2544B7F63A8e991aF2068a363d210d6Da', | ||
tokens: [ADDRESSES['ethereum'].WBTC, '0xc96de26018a54d51c097160568752c4e3bd6c364'] | ||
}, | ||
optimism: { | ||
vault: defaultVault, | ||
tokens: [ADDRESSES['optimism'].WBTC] | ||
}, | ||
mantle: { | ||
vault: defaultVault, | ||
tokens: ['0xC96dE26018A54D51c097160568752c4E3BD6C364'] | ||
}, | ||
bsquared: { | ||
vault: defaultVault, | ||
tokens: [ADDRESSES.null,ADDRESSES['bsquared'].WBTC] | ||
}, | ||
merlin: { | ||
vault: defaultVault, | ||
tokens: [ADDRESSES.null,ADDRESSES['merlin'].WBTC_1] | ||
}, | ||
btr: { | ||
vault: defaultVault, | ||
tokens: [ADDRESSES.null, ADDRESSES['btr'].WBTC] | ||
}, | ||
} | ||
|
||
const tvl = (chainConfig) => { | ||
return async (api) => { | ||
return api.sumTokens({ tokens: chainConfig.tokens, owner: chainConfig.vault }) | ||
} | ||
} | ||
|
||
Object.keys(config).forEach(chain => { | ||
module.exports[chain] = { | ||
tvl: tvl(config[chain]) | ||
} | ||
}) |