@venusprotocol/venus-periphery 1.2.0-slim-dev.2 → 1.2.0-slim-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/contracts/Interfaces/IVBNB.sol/IVBNB.json +7 -0
- package/artifacts/contracts/PositionSwapper/PositionSwapper.sol/PositionSwapper.json +2 -2
- package/artifacts/contracts/SwapRouter/ISwapRouter.sol/ISwapRouter.json +189 -0
- package/artifacts/contracts/SwapRouter/SwapRouter.sol/SwapRouter.json +627 -0
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/PendlePTVaultAdapter.sol/PendlePTVaultAdapter.json +1763 -0
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/interfaces/IPendlePTVaultAdapter.sol/IPendlePTVaultAdapter.json +1463 -0
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/interfaces/IVenusComptroller.sol/IVenusComptroller.json +54 -0
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/interfaces/IVenusVToken.sol/IVenusVToken.json +104 -0
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/test/AggregatorMock.sol/AggregatorMock.json +123 -0
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/test/IPancakeRouterV2.sol/IPancakeRouterV2.json +89 -0
- package/deployments/bscmainnet_addresses.json +6 -0
- package/deployments/bsctestnet_addresses.json +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IVenusComptroller",
|
|
4
|
+
"sourceName": "contracts/pendle-pt-fixed-rate-vault/interfaces/IVenusComptroller.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "user",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "delegate",
|
|
16
|
+
"type": "address"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "approvedDelegates",
|
|
20
|
+
"outputs": [
|
|
21
|
+
{
|
|
22
|
+
"internalType": "bool",
|
|
23
|
+
"name": "",
|
|
24
|
+
"type": "bool"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"stateMutability": "view",
|
|
28
|
+
"type": "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"internalType": "address",
|
|
34
|
+
"name": "vToken",
|
|
35
|
+
"type": "address"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "isMarketListed",
|
|
39
|
+
"outputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "bool",
|
|
42
|
+
"name": "",
|
|
43
|
+
"type": "bool"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"stateMutability": "view",
|
|
47
|
+
"type": "function"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"bytecode": "0x",
|
|
51
|
+
"deployedBytecode": "0x",
|
|
52
|
+
"linkReferences": {},
|
|
53
|
+
"deployedLinkReferences": {}
|
|
54
|
+
}
|
package/artifacts/contracts/pendle-pt-fixed-rate-vault/interfaces/IVenusVToken.sol/IVenusVToken.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IVenusVToken",
|
|
4
|
+
"sourceName": "contracts/pendle-pt-fixed-rate-vault/interfaces/IVenusVToken.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "account",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "balanceOf",
|
|
15
|
+
"outputs": [
|
|
16
|
+
{
|
|
17
|
+
"internalType": "uint256",
|
|
18
|
+
"name": "",
|
|
19
|
+
"type": "uint256"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"stateMutability": "view",
|
|
23
|
+
"type": "function"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "comptroller",
|
|
28
|
+
"outputs": [
|
|
29
|
+
{
|
|
30
|
+
"internalType": "address",
|
|
31
|
+
"name": "",
|
|
32
|
+
"type": "address"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"stateMutability": "view",
|
|
36
|
+
"type": "function"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "receiver",
|
|
43
|
+
"type": "address"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "mintAmount",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "mintBehalf",
|
|
52
|
+
"outputs": [
|
|
53
|
+
{
|
|
54
|
+
"internalType": "uint256",
|
|
55
|
+
"name": "",
|
|
56
|
+
"type": "uint256"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"stateMutability": "nonpayable",
|
|
60
|
+
"type": "function"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"internalType": "address",
|
|
66
|
+
"name": "owner",
|
|
67
|
+
"type": "address"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"internalType": "uint256",
|
|
71
|
+
"name": "redeemTokens",
|
|
72
|
+
"type": "uint256"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"name": "redeemBehalf",
|
|
76
|
+
"outputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"stateMutability": "nonpayable",
|
|
84
|
+
"type": "function"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"inputs": [],
|
|
88
|
+
"name": "underlying",
|
|
89
|
+
"outputs": [
|
|
90
|
+
{
|
|
91
|
+
"internalType": "address",
|
|
92
|
+
"name": "",
|
|
93
|
+
"type": "address"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view",
|
|
97
|
+
"type": "function"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"bytecode": "0x",
|
|
101
|
+
"deployedBytecode": "0x",
|
|
102
|
+
"linkReferences": {},
|
|
103
|
+
"deployedLinkReferences": {}
|
|
104
|
+
}
|
package/artifacts/contracts/pendle-pt-fixed-rate-vault/test/AggregatorMock.sol/AggregatorMock.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "AggregatorMock",
|
|
4
|
+
"sourceName": "contracts/pendle-pt-fixed-rate-vault/test/AggregatorMock.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"components": [
|
|
10
|
+
{
|
|
11
|
+
"internalType": "address",
|
|
12
|
+
"name": "callTarget",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"internalType": "address",
|
|
17
|
+
"name": "approveTarget",
|
|
18
|
+
"type": "address"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"internalType": "bytes",
|
|
22
|
+
"name": "targetData",
|
|
23
|
+
"type": "bytes"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"components": [
|
|
27
|
+
{
|
|
28
|
+
"internalType": "contract IERC20",
|
|
29
|
+
"name": "srcToken",
|
|
30
|
+
"type": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "contract IERC20",
|
|
34
|
+
"name": "dstToken",
|
|
35
|
+
"type": "address"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"internalType": "address[]",
|
|
39
|
+
"name": "srcReceivers",
|
|
40
|
+
"type": "address[]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"internalType": "uint256[]",
|
|
44
|
+
"name": "srcAmounts",
|
|
45
|
+
"type": "uint256[]"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"internalType": "address[]",
|
|
49
|
+
"name": "feeReceivers",
|
|
50
|
+
"type": "address[]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint256[]",
|
|
54
|
+
"name": "feeAmounts",
|
|
55
|
+
"type": "uint256[]"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "dstReceiver",
|
|
60
|
+
"type": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "amount",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "uint256",
|
|
69
|
+
"name": "minReturnAmount",
|
|
70
|
+
"type": "uint256"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "flags",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "bytes",
|
|
79
|
+
"name": "permit",
|
|
80
|
+
"type": "bytes"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"internalType": "struct AggregatorMock.SwapDescriptionV2",
|
|
84
|
+
"name": "desc",
|
|
85
|
+
"type": "tuple"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "bytes",
|
|
89
|
+
"name": "clientData",
|
|
90
|
+
"type": "bytes"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"internalType": "struct AggregatorMock.SwapExecutionParams",
|
|
94
|
+
"name": "execution",
|
|
95
|
+
"type": "tuple"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "swap",
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "uint256",
|
|
102
|
+
"name": "returnAmount",
|
|
103
|
+
"type": "uint256"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "uint256",
|
|
107
|
+
"name": "gasUsed",
|
|
108
|
+
"type": "uint256"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"stateMutability": "payable",
|
|
112
|
+
"type": "function"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"stateMutability": "payable",
|
|
116
|
+
"type": "receive"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"bytecode": "0x6080604052348015600e575f5ffd5b5061100d8061001c5f395ff3fe608060405260043610610020575f3560e01c8063e21fd0e91461002b575f5ffd5b3661002757005b5f5ffd5b61003e61003936600461073b565b610055565b60405161004c92919061077b565b60405180910390f35b5f80806100656060850185610796565b61006e90610ba1565b60c08101519091505f906001600160a01b031615610090578160c00151610092565b335b602083015160e084015184519293506001600160a01b0391821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14926100d292169033903090610262565b5f8161014c5783602001516001600160a01b03166370a08231846040518263ffffffff1660e01b81526004016101089190610bb5565b602060405180830381865afa158015610123573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101479190610bce565b610158565b826001600160a01b0316315b8451909150610185906001600160a01b03167310ed43c718714eb63d5aa57b78b54704e256024e5f6102c0565b60e084015184516101b7916001600160a01b03909116907310ed43c718714eb63d5aa57b78b54704e256024e906102c0565b6101c2848484610380565b5f8261023c5784602001516001600160a01b03166370a08231856040518263ffffffff1660e01b81526004016101f89190610bb5565b602060405180830381865afa158015610213573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102379190610bce565b610248565b836001600160a01b0316315b90506102548282610c00565b985f98509650505050505050565b6102ba846323b872dd60e01b85858560405160240161028393929190610c13565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610573565b50505050565b8015806103375750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906102f69030908690600401610c3b565b602060405180830381865afa158015610311573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103359190610bce565b155b61035c5760405162461bcd60e51b815260040161035390610cab565b60405180910390fd5b61037b8363095ea7b360e01b8484604051602401610283929190610cbb565b505050565b80156104a9576040805160028082526060820183525f92602083019080368337019050509050835f0151815f815181106103bc576103bc610cc9565b60200260200101906001600160a01b031690816001600160a01b03168152505073bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c8160018151811061040457610404610cc9565b6001600160a01b039092166020928302919091019091015260e08401516040516318cbafe560e01b81527310ed43c718714eb63d5aa57b78b54704e256024e916318cbafe59161046091905f90869089905f1990600401610d4e565b5f604051808303815f875af115801561047b573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104a29190810190610e12565b5050505050565b6040805160028082526060820183525f92602083019080368337019050509050835f0151815f815181106104df576104df610cc9565b60200260200101906001600160a01b031690816001600160a01b03168152505083602001518160018151811061051757610517610cc9565b6001600160a01b039092166020928302919091019091015260e08401516040516338ed173960e01b81527310ed43c718714eb63d5aa57b78b54704e256024e916338ed17399161046091905f90869089905f1990600401610d4e565b5f6105c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106039092919063ffffffff16565b905080515f14806105e75750808060200190518101906105e79190610e5d565b61037b5760405162461bcd60e51b815260040161035390610ec1565b606061061184845f8561061b565b90505b9392505050565b60608247101561063d5760405162461bcd60e51b815260040161035390610f13565b5f5f866001600160a01b031685876040516106589190610f4f565b5f6040518083038185875af1925050503d805f8114610692576040519150601f19603f3d011682016040523d82523d5f602084013e610697565b606091505b50915091506106a8878383876106b5565b925050505b949350505050565b606083156106f35782515f036106ec576001600160a01b0385163b6106ec5760405162461bcd60e51b815260040161035390610f5a565b50816106ad565b6106ad83838151156107085781518083602001fd5b8060405162461bcd60e51b81526004016103539190610fc6565b5f60a08284031215610735576107355f5ffd5b50919050565b5f6020828403121561074e5761074e5f5ffd5b813567ffffffffffffffff811115610767576107675f5ffd5b6106ad84828501610722565b805b82525050565b604081016107898285610773565b6106146020830184610773565b5f823561015e19368490030181126107af576107af5f5ffd5b9190910192915050565b634e487b7160e01b5f52604160045260245ffd5b601f19601f830116810181811067ffffffffffffffff821117156107f3576107f36107b9565b6040525050565b5f61080460405190565b905061081082826107cd565b919050565b5f6001600160a01b0382165b92915050565b5f61082182610815565b61083a81610827565b8114610844575f5ffd5b50565b803561082181610831565b5f67ffffffffffffffff82111561086b5761086b6107b9565b5060209081020190565b61083a81610815565b803561082181610875565b5f61089b61089684610852565b6107fa565b838152905060208082019084028301858111156108b9576108b95f5ffd5b835b818110156108dd57806108ce888261087e565b845250602092830192016108bb565b5050509392505050565b5f82601f8301126108f9576108f95f5ffd5b81356106ad848260208601610889565b8061083a565b803561082181610909565b5f61092761089684610852565b83815290506020808201908402830185811115610945576109455f5ffd5b835b818110156108dd578061095a888261090f565b84525060209283019201610947565b5f82601f83011261097b5761097b5f5ffd5b81356106ad84826020860161091a565b5f67ffffffffffffffff8211156109a4576109a46107b9565b601f19601f83011660200192915050565b82818337505f910152565b5f6109cd6108968461098b565b9050828152602081018484840111156109e7576109e75f5ffd5b6109f28482856109b5565b509392505050565b5f82601f830112610a0c57610a0c5f5ffd5b81356106ad8482602086016109c0565b5f6101608284031215610a3057610a305f5ffd5b610a3b6101606107fa565b90505f610a488484610847565b8252506020610a5984848301610847565b602083015250604082013567ffffffffffffffff811115610a7b57610a7b5f5ffd5b610a87848285016108e7565b604083015250606082013567ffffffffffffffff811115610aa957610aa95f5ffd5b610ab584828501610969565b606083015250608082013567ffffffffffffffff811115610ad757610ad75f5ffd5b610ae3848285016108e7565b60808301525060a082013567ffffffffffffffff811115610b0557610b055f5ffd5b610b1184828501610969565b60a08301525060c0610b258482850161087e565b60c08301525060e0610b398482850161090f565b60e083015250610100610b4e8482850161090f565b61010083015250610120610b648482850161090f565b6101208301525061014082013567ffffffffffffffff811115610b8857610b885f5ffd5b610b94848285016109fa565b6101408301525092915050565b5f6108213683610a1c565b61077581610815565b602081016108218284610bac565b805161082181610909565b5f60208284031215610be157610be15f5ffd5b5f6106ad8484610bc3565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561082157610821610bec565b60608101610c218286610bac565b610c2e6020830185610bac565b6106ad6040830184610773565b60408101610c498285610bac565b6106146020830184610bac565b603681525f602082017f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f81527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b602082015291505b5060400190565b6020808252810161082181610c56565b604081016107898285610bac565b634e487b7160e01b5f52603260045260245ffd5b5f610821610ce88381565b90565b61077581610cdd565b5f610cff8383610bac565b505060200190565b5f610d10825190565b8084526020938401938301805f5b83811015610d43578151610d328882610cf4565b975060208301925050600101610d1e565b509495945050505050565b60a08101610d5c8288610773565b610d696020830187610ceb565b8181036040830152610d7b8186610d07565b9050610d8a6060830185610bac565b610d976080830184610773565b9695505050505050565b5f610dae61089684610852565b83815290506020808201908402830185811115610dcc57610dcc5f5ffd5b835b818110156108dd5780610de18882610bc3565b84525060209283019201610dce565b5f82601f830112610e0257610e025f5ffd5b81516106ad848260208601610da1565b5f60208284031215610e2557610e255f5ffd5b815167ffffffffffffffff811115610e3e57610e3e5f5ffd5b6106ad84828501610df0565b80151561083a565b805161082181610e4a565b5f60208284031215610e7057610e705f5ffd5b5f6106ad8484610e52565b602a81525f602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b60208201529150610ca4565b6020808252810161082181610e7b565b602681525f602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b60208201529150610ca4565b6020808252810161082181610ed1565b8281835e505f910152565b5f610f37825190565b610f45818560208601610f23565b9290920192915050565b5f6106148284610f2e565b6020808252810161082181601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b5f610f9e825190565b808452602084019350610fb5818560208601610f23565b601f01601f19169290920192915050565b602080825281016106148184610f9556fea2646970667358221220986e3bcca623b6646b88ffaa7d3cbcc00f079e3af7b08257ba87d0a81c07ae6364736f6c634300081c0033",
|
|
120
|
+
"deployedBytecode": "0x608060405260043610610020575f3560e01c8063e21fd0e91461002b575f5ffd5b3661002757005b5f5ffd5b61003e61003936600461073b565b610055565b60405161004c92919061077b565b60405180910390f35b5f80806100656060850185610796565b61006e90610ba1565b60c08101519091505f906001600160a01b031615610090578160c00151610092565b335b602083015160e084015184519293506001600160a01b0391821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14926100d292169033903090610262565b5f8161014c5783602001516001600160a01b03166370a08231846040518263ffffffff1660e01b81526004016101089190610bb5565b602060405180830381865afa158015610123573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101479190610bce565b610158565b826001600160a01b0316315b8451909150610185906001600160a01b03167310ed43c718714eb63d5aa57b78b54704e256024e5f6102c0565b60e084015184516101b7916001600160a01b03909116907310ed43c718714eb63d5aa57b78b54704e256024e906102c0565b6101c2848484610380565b5f8261023c5784602001516001600160a01b03166370a08231856040518263ffffffff1660e01b81526004016101f89190610bb5565b602060405180830381865afa158015610213573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102379190610bce565b610248565b836001600160a01b0316315b90506102548282610c00565b985f98509650505050505050565b6102ba846323b872dd60e01b85858560405160240161028393929190610c13565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610573565b50505050565b8015806103375750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906102f69030908690600401610c3b565b602060405180830381865afa158015610311573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103359190610bce565b155b61035c5760405162461bcd60e51b815260040161035390610cab565b60405180910390fd5b61037b8363095ea7b360e01b8484604051602401610283929190610cbb565b505050565b80156104a9576040805160028082526060820183525f92602083019080368337019050509050835f0151815f815181106103bc576103bc610cc9565b60200260200101906001600160a01b031690816001600160a01b03168152505073bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c8160018151811061040457610404610cc9565b6001600160a01b039092166020928302919091019091015260e08401516040516318cbafe560e01b81527310ed43c718714eb63d5aa57b78b54704e256024e916318cbafe59161046091905f90869089905f1990600401610d4e565b5f604051808303815f875af115801561047b573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104a29190810190610e12565b5050505050565b6040805160028082526060820183525f92602083019080368337019050509050835f0151815f815181106104df576104df610cc9565b60200260200101906001600160a01b031690816001600160a01b03168152505083602001518160018151811061051757610517610cc9565b6001600160a01b039092166020928302919091019091015260e08401516040516338ed173960e01b81527310ed43c718714eb63d5aa57b78b54704e256024e916338ed17399161046091905f90869089905f1990600401610d4e565b5f6105c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106039092919063ffffffff16565b905080515f14806105e75750808060200190518101906105e79190610e5d565b61037b5760405162461bcd60e51b815260040161035390610ec1565b606061061184845f8561061b565b90505b9392505050565b60608247101561063d5760405162461bcd60e51b815260040161035390610f13565b5f5f866001600160a01b031685876040516106589190610f4f565b5f6040518083038185875af1925050503d805f8114610692576040519150601f19603f3d011682016040523d82523d5f602084013e610697565b606091505b50915091506106a8878383876106b5565b925050505b949350505050565b606083156106f35782515f036106ec576001600160a01b0385163b6106ec5760405162461bcd60e51b815260040161035390610f5a565b50816106ad565b6106ad83838151156107085781518083602001fd5b8060405162461bcd60e51b81526004016103539190610fc6565b5f60a08284031215610735576107355f5ffd5b50919050565b5f6020828403121561074e5761074e5f5ffd5b813567ffffffffffffffff811115610767576107675f5ffd5b6106ad84828501610722565b805b82525050565b604081016107898285610773565b6106146020830184610773565b5f823561015e19368490030181126107af576107af5f5ffd5b9190910192915050565b634e487b7160e01b5f52604160045260245ffd5b601f19601f830116810181811067ffffffffffffffff821117156107f3576107f36107b9565b6040525050565b5f61080460405190565b905061081082826107cd565b919050565b5f6001600160a01b0382165b92915050565b5f61082182610815565b61083a81610827565b8114610844575f5ffd5b50565b803561082181610831565b5f67ffffffffffffffff82111561086b5761086b6107b9565b5060209081020190565b61083a81610815565b803561082181610875565b5f61089b61089684610852565b6107fa565b838152905060208082019084028301858111156108b9576108b95f5ffd5b835b818110156108dd57806108ce888261087e565b845250602092830192016108bb565b5050509392505050565b5f82601f8301126108f9576108f95f5ffd5b81356106ad848260208601610889565b8061083a565b803561082181610909565b5f61092761089684610852565b83815290506020808201908402830185811115610945576109455f5ffd5b835b818110156108dd578061095a888261090f565b84525060209283019201610947565b5f82601f83011261097b5761097b5f5ffd5b81356106ad84826020860161091a565b5f67ffffffffffffffff8211156109a4576109a46107b9565b601f19601f83011660200192915050565b82818337505f910152565b5f6109cd6108968461098b565b9050828152602081018484840111156109e7576109e75f5ffd5b6109f28482856109b5565b509392505050565b5f82601f830112610a0c57610a0c5f5ffd5b81356106ad8482602086016109c0565b5f6101608284031215610a3057610a305f5ffd5b610a3b6101606107fa565b90505f610a488484610847565b8252506020610a5984848301610847565b602083015250604082013567ffffffffffffffff811115610a7b57610a7b5f5ffd5b610a87848285016108e7565b604083015250606082013567ffffffffffffffff811115610aa957610aa95f5ffd5b610ab584828501610969565b606083015250608082013567ffffffffffffffff811115610ad757610ad75f5ffd5b610ae3848285016108e7565b60808301525060a082013567ffffffffffffffff811115610b0557610b055f5ffd5b610b1184828501610969565b60a08301525060c0610b258482850161087e565b60c08301525060e0610b398482850161090f565b60e083015250610100610b4e8482850161090f565b61010083015250610120610b648482850161090f565b6101208301525061014082013567ffffffffffffffff811115610b8857610b885f5ffd5b610b94848285016109fa565b6101408301525092915050565b5f6108213683610a1c565b61077581610815565b602081016108218284610bac565b805161082181610909565b5f60208284031215610be157610be15f5ffd5b5f6106ad8484610bc3565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561082157610821610bec565b60608101610c218286610bac565b610c2e6020830185610bac565b6106ad6040830184610773565b60408101610c498285610bac565b6106146020830184610bac565b603681525f602082017f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f81527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b602082015291505b5060400190565b6020808252810161082181610c56565b604081016107898285610bac565b634e487b7160e01b5f52603260045260245ffd5b5f610821610ce88381565b90565b61077581610cdd565b5f610cff8383610bac565b505060200190565b5f610d10825190565b8084526020938401938301805f5b83811015610d43578151610d328882610cf4565b975060208301925050600101610d1e565b509495945050505050565b60a08101610d5c8288610773565b610d696020830187610ceb565b8181036040830152610d7b8186610d07565b9050610d8a6060830185610bac565b610d976080830184610773565b9695505050505050565b5f610dae61089684610852565b83815290506020808201908402830185811115610dcc57610dcc5f5ffd5b835b818110156108dd5780610de18882610bc3565b84525060209283019201610dce565b5f82601f830112610e0257610e025f5ffd5b81516106ad848260208601610da1565b5f60208284031215610e2557610e255f5ffd5b815167ffffffffffffffff811115610e3e57610e3e5f5ffd5b6106ad84828501610df0565b80151561083a565b805161082181610e4a565b5f60208284031215610e7057610e705f5ffd5b5f6106ad8484610e52565b602a81525f602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b60208201529150610ca4565b6020808252810161082181610e7b565b602681525f602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b60208201529150610ca4565b6020808252810161082181610ed1565b8281835e505f910152565b5f610f37825190565b610f45818560208601610f23565b9290920192915050565b5f6106148284610f2e565b6020808252810161082181601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b5f610f9e825190565b808452602084019350610fb5818560208601610f23565b601f01601f19169290920192915050565b602080825281016106148184610f9556fea2646970667358221220986e3bcca623b6646b88ffaa7d3cbcc00f079e3af7b08257ba87d0a81c07ae6364736f6c634300081c0033",
|
|
121
|
+
"linkReferences": {},
|
|
122
|
+
"deployedLinkReferences": {}
|
|
123
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IPancakeRouterV2",
|
|
4
|
+
"sourceName": "contracts/pendle-pt-fixed-rate-vault/test/IPancakeRouterV2.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "amountIn",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "amountOutMin",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address[]",
|
|
20
|
+
"name": "path",
|
|
21
|
+
"type": "address[]"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "to",
|
|
26
|
+
"type": "address"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "deadline",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "swapExactTokensForETH",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "uint256[]",
|
|
38
|
+
"name": "amounts",
|
|
39
|
+
"type": "uint256[]"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "nonpayable",
|
|
43
|
+
"type": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [
|
|
47
|
+
{
|
|
48
|
+
"internalType": "uint256",
|
|
49
|
+
"name": "amountIn",
|
|
50
|
+
"type": "uint256"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "amountOutMin",
|
|
55
|
+
"type": "uint256"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address[]",
|
|
59
|
+
"name": "path",
|
|
60
|
+
"type": "address[]"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "address",
|
|
64
|
+
"name": "to",
|
|
65
|
+
"type": "address"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "uint256",
|
|
69
|
+
"name": "deadline",
|
|
70
|
+
"type": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"name": "swapExactTokensForTokens",
|
|
74
|
+
"outputs": [
|
|
75
|
+
{
|
|
76
|
+
"internalType": "uint256[]",
|
|
77
|
+
"name": "amounts",
|
|
78
|
+
"type": "uint256[]"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"stateMutability": "nonpayable",
|
|
82
|
+
"type": "function"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"bytecode": "0x",
|
|
86
|
+
"deployedBytecode": "0x",
|
|
87
|
+
"linkReferences": {},
|
|
88
|
+
"deployedLinkReferences": {}
|
|
89
|
+
}
|
|
@@ -11,10 +11,16 @@
|
|
|
11
11
|
"PancakeSwapOracle": "0x44B72078240A3509979faF450085Fa818401D32E",
|
|
12
12
|
"PancakeSwapOracle_Implementation": "0xcC29BEa10dBD52E8f915B99C55b55C74AC9AfD5b",
|
|
13
13
|
"PancakeSwapOracle_Proxy": "0x44B72078240A3509979faF450085Fa818401D32E",
|
|
14
|
+
"PendlePTVaultAdapter": "0x60Db419d8ea13C5827072Cf693D13cA1Ec6E0B4a",
|
|
15
|
+
"PendlePTVaultAdapter_Implementation": "0x70B093Df30B62105e1aCb91Feeb1E9a916d7d899",
|
|
16
|
+
"PendlePTVaultAdapter_Proxy": "0x60Db419d8ea13C5827072Cf693D13cA1Ec6E0B4a",
|
|
14
17
|
"SentinelOracle": "0x58eae0Cf4215590E19860b66b146C5d539cb6f14",
|
|
15
18
|
"SentinelOracle_Implementation": "0x26F9aCA545Cb0d91738e5AAD1b8E6568728f7BC0",
|
|
16
19
|
"SentinelOracle_Proxy": "0x58eae0Cf4215590E19860b66b146C5d539cb6f14",
|
|
17
20
|
"SwapHelper": "0xD79be25aEe798Aa34A9Ba1230003d7499be29A24",
|
|
21
|
+
"SwapRouter": "0xde7E4f67Af577F29e5F3B995f9e67FD425F73621",
|
|
22
|
+
"SwapRouter_Implementation": "0xf0B661b6694940Ad4cE583449b71733D4D44C2F1",
|
|
23
|
+
"SwapRouter_Proxy": "0xde7E4f67Af577F29e5F3B995f9e67FD425F73621",
|
|
18
24
|
"UniswapOracle": "0x8FD05458faf220B2324c4BFbb29DBC4B3CF6f23f",
|
|
19
25
|
"UniswapOracle_Implementation": "0x3156529859cf18708404544324098330EAb31827",
|
|
20
26
|
"UniswapOracle_Proxy": "0x8FD05458faf220B2324c4BFbb29DBC4B3CF6f23f"
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"SentinelOracle": "0xa4f2B03919BAAdCA80C31406412C7Ee059A579D3",
|
|
9
9
|
"SentinelOracle_Implementation": "0x95fab31B827E5071eD3421B85F02169Dc5814100",
|
|
10
10
|
"SentinelOracle_Proxy": "0xa4f2B03919BAAdCA80C31406412C7Ee059A579D3",
|
|
11
|
-
"SwapHelper": "0x55Fa097cA59BAc70C1ba488BEb11A5F6bf7019Eb"
|
|
11
|
+
"SwapHelper": "0x55Fa097cA59BAc70C1ba488BEb11A5F6bf7019Eb",
|
|
12
|
+
"SwapRouter": "0xd3F226acA3210990DBA3f410b74E36b08F31FCf2",
|
|
13
|
+
"SwapRouter_Implementation": "0xc579c3F0DBA2b7d82d6256AF07C116A96aD64608",
|
|
14
|
+
"SwapRouter_Proxy": "0xd3F226acA3210990DBA3f410b74E36b08F31FCf2"
|
|
12
15
|
}
|
|
13
16
|
}
|