Skip to content

Commit

Permalink
Merge pull request #257 from pods-finance/develop
Browse files Browse the repository at this point in the history
v1.1.0 - OracleIV + Dynamic Fees
  • Loading branch information
Robsonsjre authored May 25, 2021
2 parents e0a7957 + 608a652 commit bfec0e3
Show file tree
Hide file tree
Showing 79 changed files with 2,423 additions and 1,155 deletions.
87 changes: 0 additions & 87 deletions abi/AMM.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,30 +283,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getMaxRemoveLiquidityAmounts",
"outputs": [
{
"internalType": "uint256",
"name": "maxWithdrawAmountA",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxWithdrawAmountB",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPoolBalances",
Expand All @@ -325,40 +301,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "percentA",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "percentB",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getRemoveLiquidityAmounts",
"outputs": [
{
"internalType": "uint256",
"name": "withdrawAmountA",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "withdrawAmountB",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -457,34 +399,5 @@
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "userSnapshots",
"outputs": [
{
"internalType": "uint256",
"name": "tokenABalance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenBBalance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fImp",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
4 changes: 2 additions & 2 deletions abi/BlackScholes.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
{
"internalType": "uint256",
"name": "sigma",
"name": "iv",
"type": "uint256"
},
{
Expand Down Expand Up @@ -115,7 +115,7 @@
},
{
"internalType": "uint256",
"name": "sigma",
"name": "iv",
"type": "uint256"
},
{
Expand Down
78 changes: 52 additions & 26 deletions abi/ConfigurationManager.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,32 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getIVGuesser",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getIVProvider",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -190,19 +216,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getSigmaGuesser",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
Expand Down Expand Up @@ -262,6 +275,32 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "ivGuesser",
"type": "address"
}
],
"name": "setIVGuesser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "ivProvider",
"type": "address"
}
],
"name": "setIVProvider",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -332,19 +371,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sigmaGuesser",
"type": "address"
}
],
"name": "setSigmaGuesser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
44 changes: 39 additions & 5 deletions abi/FeePool.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
{
"internalType": "uint256",
"name": "feeValue",
"name": "feeBaseValue",
"type": "uint256"
},
{
Expand All @@ -32,7 +32,7 @@
{
"indexed": false,
"internalType": "uint256",
"name": "newFee",
"name": "newBaseFee",
"type": "uint256"
},
{
Expand Down Expand Up @@ -183,7 +183,7 @@
"outputs": [
{
"internalType": "uint256",
"name": "",
"name": "feeBaseValue",
"type": "uint256"
}
],
Expand All @@ -196,13 +196,47 @@
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "poolAmount",
"type": "uint256"
}
],
"name": "getCollectable",
"outputs": [
{
"internalType": "uint256",
"name": "",
"name": "totalFee",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountOfShares",
"type": "uint256"
}
],
"name": "getWithdrawAmount",
"outputs": [
{
"internalType": "uint256",
"name": "amortizedLiability",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
}
],
Expand Down Expand Up @@ -251,7 +285,7 @@
"inputs": [
{
"internalType": "uint256",
"name": "value",
"name": "feeBaseValue",
"type": "uint256"
},
{
Expand Down
36 changes: 36 additions & 0 deletions abi/FeePoolBuilder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"internalType": "uint256",
"name": "feeBaseValue",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "feeDecimals",
"type": "uint8"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "buildFeePool",
"outputs": [
{
"internalType": "contract IFeePool",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit bfec0e3

Please sign in to comment.