You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enzyme is a platform that allows people to invest in DeFi with very little management. Users deposit tokens in vaults that generate income through DeFi strategies.
Integrate Enzyme as a Data Provider will enable to create new Data Groups from Vaults depositors.
Specifications
Here is the interface-schema.json that represents the specifications of the Data Provider:
{
"name": "Enzyme",
"iconUrl": "",
"providerClassName": "EnzymeProvider",
"functions": [
{
"name": "Get the depositors of a vault",
"functionName": "getVaultDepositors",
"countFunctionName": "getVaultDepositorsCount",
"description": "Returns all the depositors of a specific vault on Enzyme. The value of each group member is the total amount they have deposited in the vault.",
"args": [
{
"name": "Vault ID",
"argName": "vaultId",
"type": "string",
"example": "0x9cfe227cab5ed97cd6781aee5f7ed6401f566355",
"description": "The ID of the vault"
}
]
}
]
}
You are also free to use any other way to fetch this data, for example you can use the BigQuery Data Provider.
Remember that the aim is to get the all the depositors in a vault, but that the value of each depositor must be the total amount he has deposited.
Here’s an example of the object that your Data Provider needs to return:
⚠️ The amount deposited can’t be a decimal value (because for now we don’t support this). To avoid this: convert the decimal number in Wei (20 ETH <=> 20000000000000000000 wei)
See the Sismo documentation to understand what a Data Provider is, and the tutorial to learn how to create one.
Please don’t hesitate to ping the team in this GitHub issue if you have any questions. You can also contact us on Telegram or Discord.
Have fun!
The text was updated successfully, but these errors were encountered:
Enzyme is a platform that allows people to invest in DeFi with very little management. Users deposit tokens in vaults that generate income through DeFi strategies.
Integrate Enzyme as a Data Provider will enable to create new Data Groups from Vaults depositors.
Specifications
Here is the
interface-schema.json
that represents the specifications of the Data Provider:Tips on how to integrate the Data Provider
The easiest way to integrate Enzyme is to use their subgraph: https://thegraph.com/hosted-service/subgraph/enzymefinance/enzyme-core
You can find easily the depositors by using this query for instance:
FYI: another subgraph exists: https://thegraph.com/hosted-service/subgraph/enzymefinance/enzyme feel free to explore it if you can't find what you want in the first given subgraph.
You are also free to use any other way to fetch this data, for example you can use the BigQuery Data Provider.
Remember that the aim is to get the all the depositors in a vault, but that the value of each depositor must be the total amount he has deposited.
Here’s an example of the object that your Data Provider needs to return:
20000000000000000000
wei)See the Sismo documentation to understand what a Data Provider is, and the tutorial to learn how to create one.
Please don’t hesitate to ping the team in this GitHub issue if you have any questions. You can also contact us on Telegram or Discord.
Have fun!
The text was updated successfully, but these errors were encountered: