Add Makina Finance TVL (#16912)

This commit is contained in:
Hugo Masclet
2025-11-05 16:05:36 +01:00
committed by GitHub
parent a9c029eee5
commit bd1f5e7bae

View File

@@ -0,0 +1,26 @@
// https://docs.makina.finance/
// https://app.makina.finance/
// Makina Finance TVL Adapter - External Pricing Version
const DUSD_TOKEN = '0x1e33e98af620f1d563fcd3cfd3c75ace841204ef';
const DETH_TOKEN = '0x871ab8e36cae9af35c6a3488b049965233deb7ed';
const DBIT_TOKEN = '0x972966bcc17f7d818de4f27dc146ef539c231bdf';
async function tvl(api) {
const [dusdSupply, dethSupply, dbitSupply] = await Promise.all([
api.call({ abi: 'erc20:totalSupply', target: DUSD_TOKEN }),
api.call({ abi: 'erc20:totalSupply', target: DETH_TOKEN }),
api.call({ abi: 'erc20:totalSupply', target: DBIT_TOKEN }),
]);
return {
[DUSD_TOKEN]: dusdSupply,
[DETH_TOKEN]: dethSupply,
[DBIT_TOKEN]: dbitSupply,
};
}
module.exports = {
methodology: "TVL counts the total supply of share tokens of the protocol",
start: 23428036,
ethereum: { tvl },
};