-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathGaugeWorkingBalanceHelper.json
124 lines (124 loc) · 11.6 KB
/
GaugeWorkingBalanceHelper.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
{
"_format": "hh-sol-artifact-1",
"contractName": "GaugeWorkingBalanceHelper",
"sourceName": "contracts/GaugeWorkingBalanceHelper.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IVeDelegationProxy",
"name": "veDelegationProxy",
"type": "address"
},
{
"internalType": "bool",
"name": "readTotalSupplyFromVE",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getVotingEscrow",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVotingEscrowDelegationProxy",
"outputs": [
{
"internalType": "contract IVeDelegation",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IGauge",
"name": "gauge",
"type": "address"
},
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getWorkingBalanceToSupplyRatios",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IGauge",
"name": "gauge",
"type": "address"
},
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getWorkingBalances",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "readsTotalSupplyFromVE",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60e060405234801561001057600080fd5b506040516109813803806109818339818101604052604081101561003357600080fd5b5080516020918201516001600160601b0319606083901b1660805260408051630458184560e11b81529051929391926001600160a01b038516926308b0308a9260048082019391829003018186803b15801561008e57600080fd5b505afa1580156100a2573d6000803e3d6000fd5b505050506040513d60208110156100b857600080fd5b50516001600160601b031960609190911b1660a052151560f81b60c0525060805160601c60a05160601c60c05160f81c61086761011a6000398061025f528061035652508061015252806103f2525080610176528061033352506108676000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063ce5a7e7d11610050578063ce5a7e7d146100a5578063daf02aff146100f9578063fd655c841461011557610067565b806308b0308a1461006c5780635f6e28f61461009d575b600080fd5b610074610150565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610074610174565b6100e0600480360360408110156100bb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610198565b6040805192835260208301919091528051918290030190f35b61010161025d565b604080519115158252519081900360200190f35b6100e06004803603604081101561012b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610281565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000806000806101a88686610281565b9150915060008673ffffffffffffffffffffffffffffffffffffffff166317e280896040518163ffffffff1660e01b815260040160206040518083038186803b1580156101f457600080fd5b505afa158015610208573d6000803e3d6000fd5b505050506040513d602081101561021e57600080fd5b5051905060006102388461023284866106a4565b906106bd565b905061024484836106d3565b61024e84836106d3565b95509550505050509250929050565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008060008473ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156102ed57600080fd5b505afa158015610301573d6000803e3d6000fd5b505050506040513d602081101561031757600080fd5b50519050600061032f8267058d15e176280000610726565b90507f000000000000000000000000000000000000000000000000000000000000000060007f00000000000000000000000000000000000000000000000000000000000000006103f0578173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103bf57600080fd5b505afa1580156103d3573d6000803e3d6000fd5b505050506040513d60208110156103e957600080fd5b5051610483565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561045657600080fd5b505afa15801561046a573d6000803e3d6000fd5b505050506040513d602081101561048057600080fd5b50515b905080156106035760008273ffffffffffffffffffffffffffffffffffffffff1663bbf7408a896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156104f457600080fd5b505afa158015610508573d6000803e3d6000fd5b505050506040513d602081101561051e57600080fd5b5051604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff8c16916318160ddd916004808301926020929190829003018186803b15801561058c57600080fd5b505afa1580156105a0573d6000803e3d6000fd5b505050506040513d60208110156105b657600080fd5b505190506105f26105eb846105e56105d567058d15e176280000610759565b6105df8688610726565b90610726565b906106d3565b86906106a4565b94506105fe868661076b565b945050505b8773ffffffffffffffffffffffffffffffffffffffff166313ecb1ca886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561066a57600080fd5b505afa15801561067e573d6000803e3d6000fd5b505050506040513d602081101561069457600080fd5b5051989297509195505050505050565b60008282016106b68482101583610777565b9392505050565b60006106cd838311156001610777565b50900390565b60006106e28215156004610777565b670de0b6b3a7640000830261071484158061070d5750670de0b6b3a764000085838161070a57fe5b04145b6005610777565b82818161071d57fe5b04949350505050565b600082820261074a84158061074357508385838161074057fe5b04145b6003610777565b670de0b6b3a76400008161071d565b670de0b6b3a764000081810391100290565b80820390821102900390565b816107855761078581610789565b5050565b6107b3817f42414c00000000000000000000000000000000000000000000000000000000006107b6565b50565b7f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfea2646970667358221220b0c932362def9b5038dbd82163bc968f7751a1fb0f4afc7d4ecc1cf6eb6de9c464736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063ce5a7e7d11610050578063ce5a7e7d146100a5578063daf02aff146100f9578063fd655c841461011557610067565b806308b0308a1461006c5780635f6e28f61461009d575b600080fd5b610074610150565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610074610174565b6100e0600480360360408110156100bb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610198565b6040805192835260208301919091528051918290030190f35b61010161025d565b604080519115158252519081900360200190f35b6100e06004803603604081101561012b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610281565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000806000806101a88686610281565b9150915060008673ffffffffffffffffffffffffffffffffffffffff166317e280896040518163ffffffff1660e01b815260040160206040518083038186803b1580156101f457600080fd5b505afa158015610208573d6000803e3d6000fd5b505050506040513d602081101561021e57600080fd5b5051905060006102388461023284866106a4565b906106bd565b905061024484836106d3565b61024e84836106d3565b95509550505050509250929050565b7f000000000000000000000000000000000000000000000000000000000000000090565b60008060008473ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156102ed57600080fd5b505afa158015610301573d6000803e3d6000fd5b505050506040513d602081101561031757600080fd5b50519050600061032f8267058d15e176280000610726565b90507f000000000000000000000000000000000000000000000000000000000000000060007f00000000000000000000000000000000000000000000000000000000000000006103f0578173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103bf57600080fd5b505afa1580156103d3573d6000803e3d6000fd5b505050506040513d60208110156103e957600080fd5b5051610483565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561045657600080fd5b505afa15801561046a573d6000803e3d6000fd5b505050506040513d602081101561048057600080fd5b50515b905080156106035760008273ffffffffffffffffffffffffffffffffffffffff1663bbf7408a896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156104f457600080fd5b505afa158015610508573d6000803e3d6000fd5b505050506040513d602081101561051e57600080fd5b5051604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905191925060009173ffffffffffffffffffffffffffffffffffffffff8c16916318160ddd916004808301926020929190829003018186803b15801561058c57600080fd5b505afa1580156105a0573d6000803e3d6000fd5b505050506040513d60208110156105b657600080fd5b505190506105f26105eb846105e56105d567058d15e176280000610759565b6105df8688610726565b90610726565b906106d3565b86906106a4565b94506105fe868661076b565b945050505b8773ffffffffffffffffffffffffffffffffffffffff166313ecb1ca886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561066a57600080fd5b505afa15801561067e573d6000803e3d6000fd5b505050506040513d602081101561069457600080fd5b5051989297509195505050505050565b60008282016106b68482101583610777565b9392505050565b60006106cd838311156001610777565b50900390565b60006106e28215156004610777565b670de0b6b3a7640000830261071484158061070d5750670de0b6b3a764000085838161070a57fe5b04145b6005610777565b82818161071d57fe5b04949350505050565b600082820261074a84158061074357508385838161074057fe5b04145b6003610777565b670de0b6b3a76400008161071d565b670de0b6b3a764000081810391100290565b80820390821102900390565b816107855761078581610789565b5050565b6107b3817f42414c00000000000000000000000000000000000000000000000000000000006107b6565b50565b7f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfea2646970667358221220b0c932362def9b5038dbd82163bc968f7751a1fb0f4afc7d4ecc1cf6eb6de9c464736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}