Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pool #54

Merged
merged 28 commits into from
Jul 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update concentrator
  • Loading branch information
twenty committed May 11, 2022
commit 6d7b0ca7742ee72dc366be1244fe47ab5d2cbf93
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"@defillama/sdk": "^2.3.61",
"bignumber.js": "^9.0.2",
"date-fns": "^2.23.0",
"dotenv": "^10.0.0",
"graphql": "^15.5.1",
@@ -19,6 +20,7 @@
"node-fetch": "^2.6.1",
"saslprep": "^1.0.3",
"simple-statistics": "^7.7.5",
"ssl-root-cas": "^1.3.1",
"superagent": "^6.1.0",
"web3": "^1.4.0"
},
28 changes: 28 additions & 0 deletions src/adaptors/concentrator/abis/AladdinCRV copy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"inputs": [],
"name": "totalUnderlying",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
8 changes: 4 additions & 4 deletions src/adaptors/concentrator/abis/AladdinCRV.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{
{
"totalUnderlying": {
"inputs": [],
"name": "totalUnderlying",
"outputs": [
@@ -12,7 +12,7 @@
"stateMutability": "view",
"type": "function"
},
{
"totalSupply": {
"inputs": [],
"name": "totalSupply",
"outputs": [
@@ -25,4 +25,4 @@
"stateMutability": "view",
"type": "function"
}
]
}
71 changes: 71 additions & 0 deletions src/adaptors/concentrator/abis/AladdinConvexVault copy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "poolInfo",
"outputs": [
{
"internalType": "uint128",
"name": "totalUnderlying",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "totalShare",
"type": "uint128"
},
{
"internalType": "uint256",
"name": "accRewardPerShare",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "convexPoolId",
"type": "uint256"
},
{
"internalType": "address",
"name": "lpToken",
"type": "address"
},
{
"internalType": "address",
"name": "crvRewards",
"type": "address"
},
{
"internalType": "uint256",
"name": "withdrawFeePercentage",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "platformFeePercentage",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "harvestBountyPercentage",
"type": "uint256"
},
{
"internalType": "bool",
"name": "pauseDeposit",
"type": "bool"
},
{
"internalType": "bool",
"name": "pauseWithdraw",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
6 changes: 3 additions & 3 deletions src/adaptors/concentrator/abis/AladdinConvexVault.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{
{
"poolInfo": {
"inputs": [
{
"internalType": "uint256",
@@ -68,4 +68,4 @@
"stateMutability": "view",
"type": "function"
}
]
}
Loading