diff --git a/v2/projects/tranche/index.js b/v2/projects/tranche/index.js new file mode 100644 index 00000000..61b9bbf4 --- /dev/null +++ b/v2/projects/tranche/index.js @@ -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 || []; + }, + } + ] +};