mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
Add Excellion Finance Adapter (#16610)
This commit is contained in:
19
projects/excellion-finance/index.js
Normal file
19
projects/excellion-finance/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const VAULT = "0xb8a14b03900828f863aedd9dd905363863bc31f4";
|
||||
const USDC = "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
||||
const totalAssetsAbi = "uint256:totalAssets";
|
||||
|
||||
async function tvl(api) {
|
||||
const totalAssets = await api.call({
|
||||
target: VAULT,
|
||||
abi: totalAssetsAbi,
|
||||
chain: "avax",
|
||||
});
|
||||
api.add(USDC, totalAssets);
|
||||
return api.getBalances();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
avax: { tvl },
|
||||
methodology:
|
||||
"Count all assets are deposited in Lagoon vault curated by Excellion Finance.",
|
||||
};
|
||||
Reference in New Issue
Block a user