Skip to content

Commit

Permalink
Merge pull request #16 from notional-finance/feature/add-vaults
Browse files Browse the repository at this point in the history
Feature/add vaults
  • Loading branch information
jeffywu authored Aug 29, 2022
2 parents d851d9b + 85d5db6 commit 36b2b12
Show file tree
Hide file tree
Showing 8 changed files with 4,598 additions and 1,305 deletions.
177 changes: 177 additions & 0 deletions abi/IStrategyVault.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "strategyTokens",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maturity",
"type": "uint256"
}
],
"name": "convertStrategyToUnderlying",
"outputs": [
{
"internalType": "int256",
"name": "underlyingValue",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "depositAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maturity",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "depositFromNotional",
"outputs": [
{
"internalType": "uint256",
"name": "strategyTokensMinted",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"internalType": "uint256",
"name": "strategyTokens",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maturity",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "underlyingToRepayDebt",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "redeemFromNotional",
"outputs": [
{
"internalType": "uint256",
"name": "transferToReceiver",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "underlyingRequired",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "repaySecondaryBorrowCallback",
"outputs": [
{
"internalType": "bytes",
"name": "returnData",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "strategy",
"outputs": [
{
"internalType": "bytes4",
"name": "strategyId",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 36b2b12

Please sign in to comment.