-
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 remote-tracking branch 'upstream/main'
- Loading branch information
Showing
108 changed files
with
1,057 additions
and
1,395 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
File renamed without changes.
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,3 @@ | ||
const { uniTvlExport } = require('../helper/unknownTokens') | ||
|
||
module.exports = uniTvlExport('degen', '0x97B162AD1443737B0500A5E726344D608eB9e255') |
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,36 @@ | ||
const sdk = require('@defillama/sdk'); | ||
const { sumTokensExport } = require('../helper/sumTokens'); | ||
|
||
const BTCOwners = [ | ||
"bc1q6dtp7ayaj5k2zv0z5ayhkdsvmtvdqgyaa9zs53", | ||
"3H8cmLndtkBs7kiHByhHAddTzy8taUwYPt", | ||
"bc1pepsapf26n8y2f4uftlmhy60ksghx6rqlxdcj4uacfqrkcg6pmncs52rzuu", | ||
"bc1qcmmkxfp2rawrp6yx55rez9jcqdnxtam8jhu2v2d9kz46upf948wq2usauv", | ||
"bc1qu4ru2sph5jatscx5xuf0ttka36yvuql7hl5h4c", | ||
"1JA46eiDpfx589wawn5RvtEXgwc518QfhZ", | ||
"bc1qaajdlp5yrj5f77wq2ndtfqnmsamvvxhpy95662zkzykn9qhvdgys580hcs", | ||
"368vZZKUWDFZRLWMFNRJzHo1HnibNeAJir", | ||
"33hE9Wq65kjbiLsGD1NYwwNatP6hbsZv5H", | ||
"32GU8Jux7SbsEbaAaLUnEQmc6JemLF6BUb", | ||
"3CP5WJ2JSLCew7SETWUe5FxpBGrekMBiwk", | ||
"39Fvw2Ho1fEkyDsos5sNTN5iMJZKzTL526", | ||
"3Kptt4TZZRcjuGH8ikoQ8mV1TVxq45dnuS", | ||
"3G4sMXWAAVTvTXTksr8u9zuu7W8RKsicEz", | ||
"335DRGzLLG2tu4H4PnFBHYAwcj5pvV8zei" | ||
]; | ||
|
||
|
||
module.exports = { | ||
methodology: "Staking tokens via AINN Layer2 Dataset counts as TVL.", | ||
bitcoin: { | ||
tvl: sdk.util.sumChainTvls([ | ||
sumTokensExport({ owners: BTCOwners }), | ||
]), | ||
}, | ||
zklink: { | ||
tvl: sumTokensExport({ | ||
owners: ["0xc698c23d7cDE4203EafD8F45d8bab8fA86D413d1"], | ||
tokens: ["0xEbc45Ef3B6D7E31573DAa9BE81825624725939f9"] //wbtc | ||
}), | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const { cachedGraphQuery } = require('../helper/cache') | ||
const { sumTokens } = require('../helper/sumTokens') | ||
|
||
const API_URL = 'https://api.ashperp.trade/graphql'; | ||
|
||
const TVLQuery = `query Vault { | ||
vault { | ||
_address | ||
getAssetTokenId | ||
} | ||
}` | ||
|
||
async function tvl() { | ||
const data = await cachedGraphQuery('ashperp', API_URL, TVLQuery) | ||
const owners = Object.values(data).flat().map(i => i._address); | ||
const token = Object.values(data).flat().map(i => i.getAssetTokenId); | ||
return sumTokens({ owners, chain: 'elrond', tokens: [token]}) | ||
} | ||
|
||
module.exports = { | ||
misrepresentedTokens: true, | ||
timetravel: false, | ||
elrond: { | ||
tvl | ||
}, | ||
} |
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,8 @@ | ||
const { treasuryExports } = require("../helper/treasury"); | ||
const ADDRESSES = require('../helper/coreAssets.json') | ||
|
||
module.exports = treasuryExports({ | ||
base: { | ||
owners: ["0x0000000000A6F0986c92cf1EC4d2e77aFBE1466D"], | ||
}, | ||
}) |
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
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,31 @@ | ||
const ADDRESSES = require('../helper/coreAssets.json') | ||
const { sumTokensExport } = require("../helper/unwrapLPs"); | ||
|
||
const BLACKWING_VAULT_ARBITRUM = '0xc6aDE8A68026d582AB37B879D188caF7e405dD09' | ||
const BLACKWING_VAULT_ETH = '0xc6aDE8A68026d582AB37B879D188caF7e405dD09' | ||
const BLACKWING_VAULT_BSC = '0xD00789260984160a64DcF19A03896DfF73BF4514' | ||
|
||
const ARBITRUM_WEETH = "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe"; | ||
const ARBITRUM_EZETH = "0x2416092f143378750bb29b79eD961ab195CcEea5"; | ||
|
||
const ETHEREUM_MAINNET_RSWETH = '0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0'; | ||
const ETHEREUM_MAINNET_RSETH = "0xa1290d69c65a6fe4df752f95823fae25cb99e5a7"; | ||
const ETHEREUM_MAINNET_WEETH = "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee"; | ||
const ETHEREUM_MAINNET_EZETH = "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110"; | ||
|
||
module.exports = { | ||
arbitrum: { | ||
tvl: sumTokensExport({ tokens: [ADDRESSES.arbitrum.USDC_CIRCLE, ADDRESSES.arbitrum.USDC, ADDRESSES.arbitrum.WETH, ARBITRUM_EZETH, ARBITRUM_WEETH,], owner: BLACKWING_VAULT_ARBITRUM, fetchCoValentTokens: true, }), | ||
}, | ||
ethereum: { | ||
tvl: sumTokensExport({ | ||
tokens: [ADDRESSES.ethereum.USDC, ADDRESSES.ethereum.WETH, ETHEREUM_MAINNET_RSWETH, ETHEREUM_MAINNET_RSETH, ETHEREUM_MAINNET_EZETH, ADDRESSES.ethereum.EETH, ETHEREUM_MAINNET_WEETH, ADDRESSES.ethereum.sUSDe, | ||
], owner: BLACKWING_VAULT_ETH, fetchCoValentTokens: true, | ||
}) | ||
}, | ||
bsc: { | ||
tvl: sumTokensExport({ | ||
tokens: [ADDRESSES.bsc.USDT, ADDRESSES.bsc.WBNB,], owner: BLACKWING_VAULT_BSC, fetchCoValentTokens: true, | ||
}) | ||
} | ||
} |
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,7 @@ | ||
const { aaveExports } = require('../helper/aave'); | ||
const methodologies = require('../helper/methodologies'); | ||
|
||
module.exports = { | ||
methodology: methodologies.lendingMarket, | ||
astrzk: aaveExports('astrzk', "0x12922D7d8762090Cb27E7e1e824EC9c373664704", undefined, ['0x7B47bfB3F6C4ff74bb39395676759d4aFbD9f071'], { v3: true }), | ||
} |
Oops, something went wrong.