Skip to content

Commit

Permalink
Merge pull request #402 from hg-tranche/tranche-master
Browse files Browse the repository at this point in the history
added tranche v2 adapter for ethereum chain
  • Loading branch information
xcellsior authored Jul 16, 2021
2 parents 1e0347f + c083151 commit 5593609
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 5593609

Please sign in to comment.