-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'desyn' of https://github.com/santinoYoung/DefiLlama-Ada…
…pters into desyn
- Loading branch information
Showing
140 changed files
with
2,198 additions
and
1,088 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,24 @@ | ||
const { sumTokensExport, nullAddress } = require("../helper/unwrapLPs"); | ||
const ADDRESSES = require('../helper/coreAssets.json') | ||
|
||
const CHAINS = { | ||
ethereum: { | ||
locker: "0x0De2669e8A7A6F6CC0cBD3Cf2D1EEaD89e243208", | ||
tokens: [ADDRESSES.ethereum.USDC, ADDRESSES.ethereum.USDT, ADDRESSES.ethereum.WETH] | ||
}, | ||
bsc: { | ||
locker: "0x92fa52d3043725D00Eab422440C4e9ef3ba180d3", | ||
tokens: [ADDRESSES.bsc.USDC, ADDRESSES.bsc.USDT, ADDRESSES.bsc.WBNB, ADDRESSES.bsc.BUSD] | ||
}, | ||
} | ||
|
||
module.exports = { | ||
methodology: | ||
"Adds up the total value locked as collateral on the Bridge platform" | ||
} | ||
|
||
Object.keys(CHAINS).forEach(chain => { | ||
module.exports[chain] = { | ||
tvl: sumTokensExport({ owner: CHAINS[chain].locker, tokens: CHAINS[chain].tokens }) | ||
} | ||
}) |
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
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
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 |
---|---|---|
|
@@ -26,4 +26,7 @@ module.exports = { | |
ethereum: { | ||
tvl, | ||
}, | ||
hallmarks:[ | ||
[1613091600, "Election market resolves"] | ||
] | ||
} |
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,15 @@ | ||
const ASSETS = [ | ||
'0xe4a6f23fb9e00fca037aa0ea0a6954de0a6c53bf', // TXAU - gold | ||
'0x34abce75d2f8f33940c721dca0f562617787bff3', // TXAG - silver | ||
'0x19b22dbadc298c359a1d1b59e35f352a2b40e33c' // TXPT - platinum | ||
] | ||
|
||
module.exports = { | ||
methodology: "TVL corresponds to the total amount of Assets minted", | ||
ethereum: { | ||
tvl: async (api) => { | ||
const totalSupplies = await api.multiCall({calls: ASSETS, abi: 'erc20:totalSupply'}) | ||
api.add(ASSETS, totalSupplies) | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
const { uniTvlExport } = require('../helper/unknownTokens') | ||
module.exports = uniTvlExport('bitindi', '0x87cef801D44D6eDa8106087e7676153c30e36950', true) | ||
module.exports.bitindi.tvl = () => ({}) | ||
|
||
// deadFrom: '2023-12-20', | ||
module.exports.deadFrom = '2023-12-20' |
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,11 @@ | ||
const { stakings } = require("../helper/staking.js"); | ||
|
||
const vaults = ['0x0464a36beCf9967111D2dCAb57CAf4a2376f6E3F', '0xC52fb7E613e401a0195C2fdB369618580D58C91D', '0x013249266842e078999088807033D80531A84260']; | ||
const tokens = ['0xb1a5700fa2358173fe465e6ea4ff52e36e88e2ad', '0xd43D8aDAC6A4C7d9Aeece7c3151FcA8f23752cf8', '0x5ffd9EbD27f2fcAB044c0f0a26A45Cb62fa29c06']; | ||
|
||
module.exports = { | ||
blast: { | ||
tvl: () => ({}), | ||
staking: stakings(vaults, tokens) | ||
}, | ||
} |
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 |
---|---|---|
@@ -1,12 +1,27 @@ | ||
const { staking } = require("../helper/staking"); | ||
const { gmxExports } = require("../helper/gmx"); | ||
const sdk = require('@defillama/sdk') | ||
|
||
const vaultAddress = "0xec8d8D4b215727f3476FF0ab41c406FA99b4272C"; | ||
const vaultAddresses = { | ||
base: "0xec8d8D4b215727f3476FF0ab41c406FA99b4272C", | ||
mode: "0xff745bdB76AfCBa9d3ACdCd71664D4250Ef1ae49" | ||
}; | ||
const stakingAddresses = { | ||
base: "0x3085F25Cbb5F34531229077BAAC20B9ef2AE85CB", | ||
mode: "0x773F34397d5F378D993F498Ee646FFe4184E00A3" | ||
}; | ||
const tokenAddresses = { | ||
base: "0x548f93779fBC992010C07467cBaf329DD5F059B7", | ||
mode: "0x66eEd5FF1701E6ed8470DC391F05e27B1d0657eb" | ||
}; | ||
|
||
module.exports = { | ||
methodology: "BMX liquidity is calculated by the value of tokens in the BLT pool.", | ||
methodology: "BMX Classic liquidity is calculated by the value of tokens in the BLT/MLT pool. TVL also includes BMX staked.", | ||
base: { | ||
tvl: gmxExports({ vault: vaultAddress }) | ||
tvl: gmxExports({ vault: vaultAddresses.base }), | ||
staking: staking(stakingAddresses.base, tokenAddresses.base) | ||
}, | ||
mode: { | ||
tvl: gmxExports({ vault: vaultAddresses.mode }), | ||
staking: staking(stakingAddresses.mode, tokenAddresses.mode) | ||
} | ||
}; |
Oops, something went wrong.