-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #402 from hg-tranche/tranche-master
added tranche v2 adapter for ethereum chain
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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,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 || []; | ||
}, | ||
} | ||
] | ||
}; |