Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xnibbler/mev-q4-2020
/ functions
Functions
795 in github.com/0xnibbler/mev-q4-2020
⨍
Functions
795
◇
Types & classes
169
↓ 62 callers
Method
String
()
model/amm.go:15
↓ 27 callers
Method
Hash
()
model/cycle.go:116
↓ 25 callers
Method
Transfer
(in bool, addr common.Address, amt *big.Int)
tokens/list.go:314
↓ 18 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/sushiswap/UniswapV2Pair.go:157
↓ 18 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/uniswapv2/UniswapV2Pair.go:157
↓ 18 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/sushiswap/UniswapV2Router02.go:168
↓ 18 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/uniswapv2/UniswapV2Router02.go:168
↓ 12 callers
Method
Amt
(t common.Address, a model.AMT)
tokens/list.go:207
↓ 11 callers
Method
Int
()
model/amt.go:52
↓ 11 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/sushiswap/UniswapV2Pair.go:168
↓ 11 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/uniswapv2/UniswapV2Pair.go:168
↓ 10 callers
Method
amtOut
(amtIn *big.Int, addr, tokenIn common.Address)
amm/uniswapv2.go:316
↓ 10 callers
Method
amtOut
func (s *Sushiswap) updatePrices(a common.Address) error { p, ok := s.pairs[a] if !ok { return errors.New("pair not found") } for _, amt := ran
amm/sushiswap.go:362
↓ 8 callers
Method
Add
(c []*model.Cycle)
algo/sched.go:8
↓ 8 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/sushiswap/UniswapV2Router02.go:157
↓ 8 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/sushiswap/UniswapV2Factory.go:157
↓ 8 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/uniswapv2/UniswapV2Router02.go:157
↓ 8 callers
Method
SetAmt
(t common.Address, amt *big.Int, amm model.AMM)
algo/algo.go:370
↓ 7 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/erc20/token.go:140
↓ 7 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/weth/WETH9.go:157
↓ 7 callers
Method
GetAmountsOut
(*bind.CallOpts, *big.Int, []common.Address)
util/pull.go:20
↓ 7 callers
Method
ID
()
amm/uniswapv2.go:45
↓ 7 callers
Method
ID
()
amm/sushiswap.go:72
↓ 6 callers
Method
Call
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for sim
contracts/uniswapv2/UniswapV2Factory.go:157
↓ 6 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/weth/WETH9.go:168
↓ 5 callers
Method
Close
Close terminates the iteration process, releasing any pending underlying resources.
contracts/weth/WETH9.go:719
↓ 5 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/sushiswap/UniswapV2Factory.go:168
↓ 4 callers
Function
AddressMapToSlice
(m map[common.Address]struct{})
util/common.go:5
↓ 4 callers
Method
AllPairs
AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. Solidity: function allPairs(uint256 ) view returns(address)
contracts/sushiswap/UniswapV2Factory.go:194
↓ 4 callers
Method
AllPairsLength
AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. Solidity: function allPairsLength() view returns(uint256)
contracts/sushiswap/UniswapV2Factory.go:225
↓ 4 callers
Method
Error
Error returns any retrieval or parsing error occurred during filtering.
contracts/weth/WETH9.go:713
↓ 4 callers
Method
Float
()
model/amt.go:25
↓ 4 callers
Method
GetPair
GetPair is a free data retrieval call binding the contract method 0xe6a43905. Solidity: function getPair(address , address ) view returns(address)
contracts/sushiswap/UniswapV2Factory.go:318
↓ 4 callers
Method
IsWETH
()
tokens/token.go:22
↓ 4 callers
Method
Token0
Token0 is a free data retrieval call binding the contract method 0x0dfe1681. Solidity: function token0() view returns(address)
contracts/sushiswap/UniswapV2Pair.go:647
↓ 4 callers
Method
Token1
Token1 is a free data retrieval call binding the contract method 0xd21220a7. Solidity: function token1() view returns(address)
contracts/sushiswap/UniswapV2Pair.go:678
↓ 4 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/erc20/token.go:151
↓ 4 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
contracts/uniswapv2/UniswapV2Factory.go:168
↓ 4 callers
Method
Update
(fromToken, toToken common.Address, amm model.AMM, rate float64, a model.AMT)
amm/common.go:37
↓ 4 callers
Function
bindToken
bindToken binds a generic wrapper to an already deployed contract.
contracts/erc20/token.go:128
↓ 4 callers
Function
bindUniswapV2Factory
bindUniswapV2Factory binds a generic wrapper to an already deployed contract.
contracts/sushiswap/UniswapV2Factory.go:145
↓ 4 callers
Function
bindUniswapV2Factory
bindUniswapV2Factory binds a generic wrapper to an already deployed contract.
contracts/uniswapv2/UniswapV2Factory.go:145
↓ 4 callers
Function
bindUniswapV2Pair
bindUniswapV2Pair binds a generic wrapper to an already deployed contract.
contracts/sushiswap/UniswapV2Pair.go:145
↓ 4 callers
Function
bindUniswapV2Pair
bindUniswapV2Pair binds a generic wrapper to an already deployed contract.
contracts/uniswapv2/UniswapV2Pair.go:145
↓ 4 callers
Function
bindUniswapV2Router02
bindUniswapV2Router02 binds a generic wrapper to an already deployed contract.
contracts/sushiswap/UniswapV2Router02.go:145
↓ 4 callers
Function
bindUniswapV2Router02
bindUniswapV2Router02 binds a generic wrapper to an already deployed contract.
contracts/uniswapv2/UniswapV2Router02.go:145
↓ 4 callers
Function
bindWETH
bindWETH binds a generic wrapper to an already deployed contract.
contracts/weth/WETH9.go:145
↓ 3 callers
Method
ByAddr
(a common.Address)
tokens/list.go:254
↓ 3 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
contracts/erc20/token.go:239
↓ 3 callers
Method
Name
Name is a free data retrieval call binding the contract method 0x06fdde03. Solidity: function name() view returns(string)
contracts/erc20/token.go:270
↓ 3 callers
Function
NewConfig
(rpc *rpc.Client, prices PriceKeeper, tokens *tokens.List, metrics *metrics.Metrics)
amm/common.go:21
↓ 3 callers
Method
Save
()
util/pull.go:26
↓ 3 callers
Method
Stop
()
metrics/metrics.go:116
↓ 3 callers
Method
Symbol
Symbol is a free data retrieval call binding the contract method 0x95d89b41. Solidity: function symbol() view returns(string)
contracts/erc20/token.go:301
↓ 3 callers
Method
Update
(cc map[uint64]float64)
algo/sched.go:9
↓ 3 callers
Method
preMetric
(f func())
metrics/metrics.go:147
↓ 3 callers
Method
updatePrices
(a common.Address)
amm/uniswapv2.go:204
↓ 3 callers
Method
updatePrices
(a common.Address)
amm/sushiswap.go:196
↓ 2 callers
Method
Age
()
model/cycle.go:108
↓ 2 callers
Method
AllAddresses
()
tokens/list.go:376
↓ 2 callers
Method
AllPairs
AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. Solidity: function allPairs(uint256 ) view returns(address)
contracts/uniswapv2/UniswapV2Factory.go:194
↓ 2 callers
Method
AllPairsLength
AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. Solidity: function allPairsLength() view returns(uint256)
contracts/uniswapv2/UniswapV2Factory.go:225
↓ 2 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address owner, address spender) view ret
contracts/erc20/token.go:177
↓ 2 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address , address ) view returns(uint256
contracts/sushiswap/UniswapV2Pair.go:287
↓ 2 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address , address ) view returns(uint256
contracts/uniswapv2/UniswapV2Pair.go:287
↓ 2 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address , address ) view returns(uint256
contracts/weth/WETH9.go:194
↓ 2 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address owner) view returns(uint256)
contracts/erc20/token.go:208
↓ 2 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address ) view returns(uint256)
contracts/sushiswap/UniswapV2Pair.go:318
↓ 2 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address ) view returns(uint256)
contracts/uniswapv2/UniswapV2Pair.go:318
↓ 2 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address ) view returns(uint256)
contracts/weth/WETH9.go:225
↓ 2 callers
Method
Copy
()
algo/graph/bf.go:100
↓ 2 callers
Method
DOMAINSEPARATOR
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
contracts/sushiswap/UniswapV2Pair.go:194
↓ 2 callers
Method
DOMAINSEPARATOR
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
contracts/uniswapv2/UniswapV2Pair.go:194
↓ 2 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
contracts/sushiswap/UniswapV2Pair.go:349
↓ 2 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
contracts/uniswapv2/UniswapV2Pair.go:349
↓ 2 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
contracts/weth/WETH9.go:256
↓ 2 callers
Method
Factory
Factory is a free data retrieval call binding the contract method 0xc45a0155. Solidity: function factory() view returns(address)
contracts/sushiswap/UniswapV2Router02.go:225
↓ 2 callers
Method
Factory
Factory is a free data retrieval call binding the contract method 0xc45a0155. Solidity: function factory() view returns(address)
contracts/sushiswap/UniswapV2Pair.go:380
↓ 2 callers
Method
Factory
Factory is a free data retrieval call binding the contract method 0xc45a0155. Solidity: function factory() view returns(address)
contracts/uniswapv2/UniswapV2Router02.go:225
↓ 2 callers
Method
Factory
Factory is a free data retrieval call binding the contract method 0xc45a0155. Solidity: function factory() view returns(address)
contracts/uniswapv2/UniswapV2Pair.go:380
↓ 2 callers
Method
FeeTo
FeeTo is a free data retrieval call binding the contract method 0x017e7e58. Solidity: function feeTo() view returns(address)
contracts/sushiswap/UniswapV2Factory.go:256
↓ 2 callers
Method
FeeTo
FeeTo is a free data retrieval call binding the contract method 0x017e7e58. Solidity: function feeTo() view returns(address)
contracts/uniswapv2/UniswapV2Factory.go:256
↓ 2 callers
Method
FeeToSetter
FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. Solidity: function feeToSetter() view returns(address)
contracts/sushiswap/UniswapV2Factory.go:287
↓ 2 callers
Method
FeeToSetter
FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. Solidity: function feeToSetter() view returns(address)
contracts/uniswapv2/UniswapV2Factory.go:287
↓ 2 callers
Method
GetAllPools
(ctx context.Context, from int)
util/pull.go:24
↓ 2 callers
Method
GetAmountIn
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn
contracts/sushiswap/UniswapV2Router02.go:256
↓ 2 callers
Method
GetAmountIn
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn
contracts/uniswapv2/UniswapV2Router02.go:256
↓ 2 callers
Method
GetAmountOut
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. Solidity: function getAmountOut(uint256 amountIn, uint256 reserveI
contracts/sushiswap/UniswapV2Router02.go:287
↓ 2 callers
Method
GetAmountOut
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. Solidity: function getAmountOut(uint256 amountIn, uint256 reserveI
contracts/uniswapv2/UniswapV2Router02.go:287
↓ 2 callers
Method
GetAmountsIn
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. Solidity: function getAmountsIn(uint256 amountOut, address[] path)
contracts/sushiswap/UniswapV2Router02.go:318
↓ 2 callers
Method
GetAmountsIn
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. Solidity: function getAmountsIn(uint256 amountOut, address[] path)
contracts/uniswapv2/UniswapV2Router02.go:318
↓ 2 callers
Method
GetPair
GetPair is a free data retrieval call binding the contract method 0xe6a43905. Solidity: function getPair(address , address ) view returns(address)
contracts/uniswapv2/UniswapV2Factory.go:318
↓ 2 callers
Method
GetReserves
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. Solidity: function getReserves() view returns(uint112 _reserve0, ui
contracts/sushiswap/UniswapV2Pair.go:411
↓ 2 callers
Method
GetReserves
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. Solidity: function getReserves() view returns(uint112 _reserve0, ui
contracts/uniswapv2/UniswapV2Pair.go:411
↓ 2 callers
Method
KLast
KLast is a free data retrieval call binding the contract method 0x7464fc3d. Solidity: function kLast() view returns(uint256)
contracts/sushiswap/UniswapV2Pair.go:461
↓ 2 callers
Method
KLast
KLast is a free data retrieval call binding the contract method 0x7464fc3d. Solidity: function kLast() view returns(uint256)
contracts/uniswapv2/UniswapV2Pair.go:461
↓ 2 callers
Function
Load
(file string, data interface{})
util/data.go:35
↓ 2 callers
Method
MINIMUMLIQUIDITY
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
contracts/sushiswap/UniswapV2Pair.go:225
↓ 2 callers
Method
MINIMUMLIQUIDITY
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
contracts/uniswapv2/UniswapV2Pair.go:225
↓ 2 callers
Method
MetricPoolUpdate
(a model.AMM, p common.Address)
metrics/metrics.go:121
next →
1–100 of 795, ranked by callers