Skip to content

Commit

Permalink
Merge pull request #155 from LibertyFi/libertify/update-prod-proxies
Browse files Browse the repository at this point in the history
Libertify/update prod proxies
  • Loading branch information
adrienlacombe authored Nov 22, 2023
2 parents c2bfef5 + 37a5289 commit 2dbf0ea
Show file tree
Hide file tree
Showing 6 changed files with 960 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_wethAddr",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "BadConstructor",
"type": "error"
},
{
"inputs": [],
"name": "BadReceiver",
"type": "error"
},
{
"inputs": [],
"name": "BadReturn",
"type": "error"
},
{
"inputs": [],
"name": "BadSwap",
"type": "error"
},
{
"inputs": [],
"name": "BadSymbol",
"type": "error"
},
{
"inputs": [],
"name": "BadToken",
"type": "error"
},
{
"inputs": [],
"name": "BadValue",
"type": "error"
},
{
"inputs": [],
"name": "UnevenSwap",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "srcToken",
"type": "address"
},
{
"internalType": "address",
"name": "vaultAddr",
"type": "address"
},
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "deposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "srcToken",
"type": "address"
},
{
"internalType": "address",
"name": "vaultAddr",
"type": "address"
},
{
"internalType": "string",
"name": "vaultSymbol",
"type": "string"
},
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "depositWithSymbolCheck",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "vaultAddr",
"type": "address"
}
],
"name": "previewWithdraw",
"outputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "amountsOut",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "dstToken",
"type": "address"
},
{
"internalType": "address",
"name": "vaultAddr",
"type": "address"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
},
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "withdraw",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "dstToken",
"type": "address"
},
{
"internalType": "address",
"name": "vaultAddr",
"type": "address"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
},
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "withdraw",
"outputs": [
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "dstToken",
"type": "address"
},
{
"internalType": "address",
"name": "vaultAddr",
"type": "address"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
},
{
"internalType": "string",
"name": "vaultSymbol",
"type": "string"
},
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "withdrawWithSymbolCheck",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
27 changes: 27 additions & 0 deletions arbitrum/libertify/b2c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"blockchainName": "arbitrum",
"chainId": 42161,
"contracts": [
{
"address": "0x833a41f86a87e3ff87c7577b2a79634e580e8a4b",
"contractName": "LibertiV2Proxy",
"selectors": {
"0xa2922622": {
"erc20OfInterest": [
"dstToken"
],
"method": "withdrawWithSymbolCheck",
"plugin": "libertify"
},
"0xaa2daba6": {
"erc20OfInterest": [
"srcToken"
],
"method": "depositWithSymbolCheck",
"plugin": "libertify"
}
}
}
],
"name": "libertify"
}
Loading

0 comments on commit 2dbf0ea

Please sign in to comment.