This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
/
aave-stk-apy-helper.json
161 lines (161 loc) · 7.56 KB
/
aave-stk-apy-helper.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[
{
"inputs": [
{ "internalType": "contract IPriceOracle", "name": "priceOracle", "type": "address" },
{ "internalType": "contract BPTPriceFeedI", "name": "bptPriceFeed", "type": "address" },
{ "internalType": "address", "name": "aave", "type": "address" },
{ "internalType": "contract IStakedToken", "name": "stkAave", "type": "address" },
{ "internalType": "address", "name": "bpt", "type": "address" },
{ "internalType": "contract IStakedToken", "name": "stkBpt", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AAVE",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BPT",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BPT_PRICE_FEED",
"outputs": [{ "internalType": "contract BPTPriceFeedI", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PRICE_ORACLE",
"outputs": [{ "internalType": "contract IPriceOracle", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "STAKED_AAVE",
"outputs": [{ "internalType": "contract IStakedToken", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "STAKED_BPT",
"outputs": [{ "internalType": "contract IStakedToken", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "user", "type": "address" }],
"name": "getStkAaveData",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "stakeTokenTotalSupply", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeCooldownSeconds", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeUnstakeWindow", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "rewardTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeApy", "type": "uint256" },
{ "internalType": "uint128", "name": "distributionPerSecond", "type": "uint128" },
{ "internalType": "uint256", "name": "distributionEnd", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "underlyingTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "userCooldown", "type": "uint256" },
{ "internalType": "uint256", "name": "userIncentivesToClaim", "type": "uint256" },
{ "internalType": "uint256", "name": "userPermitNonce", "type": "uint256" }
],
"internalType": "struct StakeUIHelperI.AssetUIData",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "user", "type": "address" }],
"name": "getStkBptData",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "stakeTokenTotalSupply", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeCooldownSeconds", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeUnstakeWindow", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "rewardTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeApy", "type": "uint256" },
{ "internalType": "uint128", "name": "distributionPerSecond", "type": "uint128" },
{ "internalType": "uint256", "name": "distributionEnd", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "underlyingTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "userCooldown", "type": "uint256" },
{ "internalType": "uint256", "name": "userIncentivesToClaim", "type": "uint256" },
{ "internalType": "uint256", "name": "userPermitNonce", "type": "uint256" }
],
"internalType": "struct StakeUIHelperI.AssetUIData",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "user", "type": "address" }],
"name": "getUserUIData",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "stakeTokenTotalSupply", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeCooldownSeconds", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeUnstakeWindow", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "rewardTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeApy", "type": "uint256" },
{ "internalType": "uint128", "name": "distributionPerSecond", "type": "uint128" },
{ "internalType": "uint256", "name": "distributionEnd", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "underlyingTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "userCooldown", "type": "uint256" },
{ "internalType": "uint256", "name": "userIncentivesToClaim", "type": "uint256" },
{ "internalType": "uint256", "name": "userPermitNonce", "type": "uint256" }
],
"internalType": "struct StakeUIHelperI.AssetUIData",
"name": "",
"type": "tuple"
},
{
"components": [
{ "internalType": "uint256", "name": "stakeTokenTotalSupply", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeCooldownSeconds", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeUnstakeWindow", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "rewardTokenPriceEth", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeApy", "type": "uint256" },
{ "internalType": "uint128", "name": "distributionPerSecond", "type": "uint128" },
{ "internalType": "uint256", "name": "distributionEnd", "type": "uint256" },
{ "internalType": "uint256", "name": "stakeTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "underlyingTokenUserBalance", "type": "uint256" },
{ "internalType": "uint256", "name": "userCooldown", "type": "uint256" },
{ "internalType": "uint256", "name": "userIncentivesToClaim", "type": "uint256" },
{ "internalType": "uint256", "name": "userPermitNonce", "type": "uint256" }
],
"internalType": "struct StakeUIHelperI.AssetUIData",
"name": "",
"type": "tuple"
},
{ "internalType": "uint256", "name": "", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
}
]