Skip to content

Commit

Permalink
added tranche v2 adapter for ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
hg-tranche committed Jul 13, 2021
1 parent 8b03561 commit c083151
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions v2/projects/tranche/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const sdk = require('../../../sdk/index');
const axios = require('axios');

module.exports = {
/* Project Metadata */
name: "TRANCHE",
token: "SLICE",
website: "https://tranche.finance/",
category: "Derivatives",
start: 1574241665,
/* required for fetching token balances */
tokenHolderMap: [
{
tokens: async () => {
return (await axios.get('https://api.tranche.finance/api/v1/common/token-address?network=ethereum')).data.result || [];
},
holders: async () => {
return (await axios.get('https://api.tranche.finance/api/v1/common/holder-address?network=ethereum')).data.result || [];
},
}
]
};

0 comments on commit c083151

Please sign in to comment.