-
Notifications
You must be signed in to change notification settings - Fork 18
/
compound.go
54 lines (50 loc) · 1.33 KB
/
compound.go
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
// Copyright 2022 Fluidity Money. All rights reserved. Use of this
// source code is governed by a GPL-style license that can be found in the
// LICENSE.md file.
package compound
import (
ethAbi "github.com/ethereum/go-ethereum/accounts/abi"
)
const cTokenContractAbiString = `[
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOfUnderlying",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x3af9e669"
},
{
"constant": true,
"inputs": [],
"name": "supplyRatePerBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xae9d70b0"
}
]`
// cTokenContractAbi set by init.go to contain the CToken ABI code that
// can be used with a bound contract
var cTokenContractAbi ethAbi.ABI