If you want to run the UI yourself, check the following steps:
yarnyarn run devyarn buildyarn lintTo add a new vault to the list, you need to run the following command : node scripts/newVault.js --fast.
This will prompt you with several information:
- What's the name of your vault ? (ex: Hardrock Farmer)
- What's the logo for your vault ? (ex: 🎸👨🌾)
- Which chain ? (oneOf: Mainnet (1), Optimism (10), BSC (56), Polygon (137), Fantom Opera (250), Arbitrum One (42161), gnosischain (100))
- What's the address of your vault ? (ex: 0x33bd0f9618cf38fea8f7f01e1514ab63b9bde64b)
- Who is the dev of this vault ? (ex: emilianobonassi)
You can add some arguments to the script in order to specify some elements. The missing arguments will be prompted as above.
Here are the arguments :
namefor the name of your vault (ex:node scripts/newVault.js --name="Hardrock Farmer")logofor the logo of your vault (ex:node scripts/newVault.js --logo=🎸👨🌾)chainfor the chain of your vault. Valid options are 1, 10, 56, 137 or 250. (ex:node scripts/newVault.js --chain=1)addressfor the address of your vault (ex:node scripts/newVault.js --address=0x33bd0f9618cf38fea8f7f01e1514ab63b9bde64b)devfor the name of the dev of your vault (ex:node scripts/newVault.js --dev=emilianobonassi)abifor the ABI to use for your vault. Valid options are yVaultV2 or LidoVault. (ex:node scripts/newVault.js --abi=yVaultV2)typefor the type of vault. Valid options are experimental or weird. (ex:node scripts/newVault.js --type=experimental)statusfor the status of this vault. Valid options are new, active, withdraw, stealth or endorsed. (ex:node scripts/newVault.js --status=active)coingeckoto specify the coingeckoID to use for this want token. (ex:node scripts/newVault.js --coingecko=true-usd)
All in one :
node scripts/newVault.js --name="Hardrock Farmer" --logo=🌾🌾 --chain=1 --address=0xFD0877d9095789cAF24c98F7CCe092fa8E120775 --dev=emilianobonassi --abi=yVaultV2 --type=experimental --status=active --coingecko=true-usd
The API helps third parties interact with the experimental vaults we are building. This API is subject to change as for the vault we are building.
For now, you can use the following route to retrieve the list of experimental vaults:
https://ape.tax/api/vaults
The following options are available:
- network
?network=1for Mainnet (default)?network=10for Optimism?network=56for BSC?network=137for Polygon?network=250for Fantom Opera?network=42161for Arbitrum One?network=100for Gnosis Chain
- rpc
?rpc=YOU_CUSTOM_RPCto use a specific RPC for this request
The returned data is cached for 10 minutes. This route returns a JSON object with the following structure:
{
"success": true,
"generatedTimeMs": 1630861673753,
"data": {
"0": {
"title": "Fantom's Fury",
"logo":"👻⚡",
"displayName":"👻⚡ Fantom's Fury",
"src":"https://ape.tax/fantomsfury",
"status":"active",
"type":"experimental",
"address":"0x36e7aF39b921235c4b01508BE38F27A535851a5c",
"network":250,
"data": {
"apiVersion":"0.3.2",
"depositLimit":"5000000.0",
"totalAssets":"716771.395316817876930412",
"availableDepositLimit":"4283228.604683182123069588",
"pricePerShare":"1.133355773675367656",
"decimals":18
},
"want": {
"address":"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",
"symbol":"WFTM",
"cgID":"fantom"
}
}
}
}