Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Supercycled/cake_sniper
/ functions
Functions
745 in github.com/Supercycled/cake_sniper
⨍
Functions
745
◇
Types & classes
165
↓ 84 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
dark_forester/contracts/uniswap/router.go:4656
↓ 69 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
dark_forester/contracts/uniswap/router.go:4645
↓ 25 callers
Method
Transfer
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
dark_forester/contracts/uniswap/router.go:4651
↓ 24 callers
Function
formatEthWeiToEther
(etherAmount *big.Int)
dark_forester/services/txHelpers.go:23
↓ 18 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
dark_forester/contracts/uniswap/abi/uniswapRouter.go:151
↓ 9 callers
Function
WaitRoom
(client *ethclient.Client, txHash common.Hash, statusResults chan *SandwichResult, txType string)
dark_forester/services/sandwicherHelper.go:162
↓ 9 callers
Function
formatERC20Decimals
Format # of tokens transferred into required float
dark_forester/services/txHelpers.go:68
↓ 9 callers
Function
getTokenName
(tokenAddress common.Address, client *ethclient.Client)
dark_forester/services/txHelpers.go:90
↓ 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
dark_forester/contracts/uniswap/abi/uniswapRouter.go:140
↓ 8 callers
Method
Factory
Factory is a free data retrieval call binding the contract method 0xc45a0155. Solidity: function factory() view returns(address)
dark_forester/contracts/uniswap/router.go:1671
↓ 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
dark_forester/contracts/erc20/erc20.go:140
↓ 7 callers
Function
_getAmountOut
Equivalent of _getAmountOut function of the PCS router. Calculates z.
dark_forester/services/assessProfitability.go:15
↓ 6 callers
Method
GetAmountIn
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn
dark_forester/contracts/uniswap/router.go:5159
↓ 6 callers
Method
GetAmountOut
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. Solidity: function getAmountOut(uint256 amountIn, uint256 reserveI
dark_forester/contracts/uniswap/router.go:5190
↓ 6 callers
Method
GetAmountsIn
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. Solidity: function getAmountsIn(uint256 amountOut, address[] path)
dark_forester/contracts/uniswap/router.go:5221
↓ 6 callers
Method
GetAmountsOut
GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. Solidity: function getAmountsOut(uint256 amountIn, address[] path
dark_forester/contracts/uniswap/router.go:5252
↓ 6 callers
Method
GetPair
GetPair is a free data retrieval call binding the contract method 0xe6a43905. Solidity: function getPair(address tokenA, address tokenB) view returns
dark_forester/contracts/uniswap/router.go:1060
↓ 6 callers
Method
Quote
Quote is a free data retrieval call binding the contract method 0xad615dec. Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reser
dark_forester/contracts/uniswap/router.go:5283
↓ 6 callers
Method
WETH
WETH is a free data retrieval call binding the contract method 0xad5c4648. Solidity: function WETH() view returns(address)
dark_forester/contracts/uniswap/router.go:5097
↓ 5 callers
Method
AddLiquidity
AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. Solidity: function addLiquidity(address tokenA, address tokenB, ui
dark_forester/contracts/uniswap/router.go:5321
↓ 5 callers
Method
AddLiquidityETH
AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. Solidity: function addLiquidityETH(address token, uint256 amoun
dark_forester/contracts/uniswap/router.go:5342
↓ 5 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address tokenOwner) view returns(uint256
dark_forester/contracts/erc20/erc20.go:203
↓ 5 callers
Method
RemoveLiquidity
RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. Solidity: function removeLiquidity(address tokenA, address toke
dark_forester/contracts/uniswap/router.go:5363
↓ 5 callers
Method
RemoveLiquidityETH
RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. Solidity: function removeLiquidityETH(address token, uint256
dark_forester/contracts/uniswap/router.go:5384
↓ 5 callers
Method
RemoveLiquidityETHWithPermit
RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. Solidity: function removeLiquidityETHWithPermit(ad
dark_forester/contracts/uniswap/router.go:5426
↓ 5 callers
Method
RemoveLiquidityWithPermit
RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. Solidity: function removeLiquidityWithPermit(address
dark_forester/contracts/uniswap/router.go:5468
↓ 5 callers
Method
SwapETHForExactTokens
SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. Solidity: function swapETHForExactTokens(uint256 amountOu
dark_forester/contracts/uniswap/router.go:5489
↓ 5 callers
Method
SwapExactETHForTokens
SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. Solidity: function swapExactETHForTokens(uint256 amountOu
dark_forester/contracts/uniswap/router.go:5510
↓ 5 callers
Method
SwapExactTokensForETH
SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. Solidity: function swapExactTokensForETH(uint256 amountIn
dark_forester/contracts/uniswap/router.go:5552
↓ 5 callers
Method
SwapExactTokensForTokens
SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. Solidity: function swapExactTokensForTokens(uint256 am
dark_forester/contracts/uniswap/router.go:5594
↓ 5 callers
Method
SwapTokensForExactETH
SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. Solidity: function swapTokensForExactETH(uint256 amountOu
dark_forester/contracts/uniswap/router.go:5636
↓ 5 callers
Method
SwapTokensForExactTokens
SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. Solidity: function swapTokensForExactTokens(uint256 am
dark_forester/contracts/uniswap/router.go:5657
↓ 5 callers
Function
getTxSenderAddressQuick
(tx *types.Transaction, client *ethclient.Client)
dark_forester/services/uniswapHelper.go:15
↓ 4 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address owner, address spender) view ret
dark_forester/contracts/uniswap/router.go:190
↓ 4 callers
Method
BalanceOf
BalanceOf is a free data retrieval call binding the contract method 0x70a08231. Solidity: function balanceOf(address owner) view returns(uint256)
dark_forester/contracts/uniswap/router.go:221
↓ 4 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
dark_forester/contracts/uniswap/router.go:252
↓ 4 callers
Method
Name
Name is a free data retrieval call binding the contract method 0x06fdde03. Solidity: function name() view returns(string)
dark_forester/contracts/uniswap/router.go:283
↓ 4 callers
Method
Name
Name is a free data retrieval call binding the contract method 0x06fdde03. Solidity: function name() view returns(string)
dark_forester/contracts/erc20/erc20.go:255
↓ 4 callers
Method
Symbol
Symbol is a free data retrieval call binding the contract method 0x95d89b41. Solidity: function symbol() view returns(string)
dark_forester/contracts/uniswap/router.go:314
↓ 4 callers
Method
Symbol
Symbol is a free data retrieval call binding the contract method 0x95d89b41. Solidity: function symbol() view returns(string)
dark_forester/contracts/erc20/erc20.go:281
↓ 4 callers
Method
TotalSupply
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. Solidity: function totalSupply() view returns(uint256)
dark_forester/contracts/uniswap/router.go:345
↓ 4 callers
Method
Transact
Transact invokes the (paid) contract method with params as input values.
dark_forester/contracts/erc20/erc20.go:151
↓ 4 callers
Function
bindErc20
bindErc20 binds a generic wrapper to an already deployed contract.
dark_forester/contracts/erc20/erc20.go:128
↓ 4 callers
Function
bindIERC20
bindIERC20 binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:141
↓ 4 callers
Function
bindIPancakeFactory
bindIPancakeFactory binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:856
↓ 4 callers
Function
bindIPancakePair
bindIPancakePair binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:1436
↓ 4 callers
Function
bindIPancakeRouter01
bindIPancakeRouter01 binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:3265
↓ 4 callers
Function
bindIPancakeRouter02
bindIPancakeRouter02 binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:3907
↓ 4 callers
Function
bindIWETH
bindIWETH binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:4633
↓ 4 callers
Function
bindPancakeLibrary
bindPancakeLibrary binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:4858
↓ 4 callers
Function
bindPancakeRouter
bindPancakeRouter binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:5048
↓ 4 callers
Function
bindSafeMath
bindSafeMath binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:5805
↓ 4 callers
Function
bindTransferHelper
bindTransferHelper binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/router.go:5967
↓ 4 callers
Function
bindUniswap
bindUniswap binds a generic wrapper to an already deployed contract.
dark_forester/contracts/uniswap/abi/uniswapRouter.go:128
↓ 4 callers
Function
formatEthWeiToEther
convert WEI to ETH
dark_forester/dark_forester.go:27
↓ 3 callers
Method
Approve
Approve is a paid mutator transaction binding the contract method 0x095ea7b3. Solidity: function approve(address spender, uint256 value) returns(bool
dark_forester/contracts/uniswap/router.go:383
↓ 3 callers
Method
Decimals
Decimals is a free data retrieval call binding the contract method 0x313ce567. Solidity: function decimals() view returns(uint8)
dark_forester/contracts/erc20/erc20.go:229
↓ 3 callers
Method
GetReserves
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. Solidity: function getReserves() view returns(uint112 reserve0, uin
dark_forester/contracts/uniswap/router.go:1702
↓ 3 callers
Method
RemoveLiquidityETHSupportingFeeOnTransferTokens
RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. Solidity: function removeLiquid
dark_forester/contracts/uniswap/router.go:5405
↓ 3 callers
Method
RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens
RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. Solidity: function re
dark_forester/contracts/uniswap/router.go:5447
↓ 3 callers
Method
SwapExactETHForTokensSupportingFeeOnTransferTokens
SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. Solidity: function swapExact
dark_forester/contracts/uniswap/router.go:5531
↓ 3 callers
Method
SwapExactTokensForETHSupportingFeeOnTransferTokens
SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. Solidity: function swapExact
dark_forester/contracts/uniswap/router.go:5573
↓ 3 callers
Method
SwapExactTokensForTokensSupportingFeeOnTransferTokens
SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. Solidity: function swapEx
dark_forester/contracts/uniswap/router.go:5615
↓ 3 callers
Method
Token0
Token0 is a free data retrieval call binding the contract method 0x0dfe1681. Solidity: function token0() view returns(address)
dark_forester/contracts/uniswap/router.go:1938
↓ 3 callers
Method
Transfer
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
dark_forester/contracts/erc20/erc20.go:146
↓ 3 callers
Method
TransferFrom
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. Solidity: function transferFrom(address from, address to, uint256
dark_forester/contracts/uniswap/router.go:425
↓ 3 callers
Function
_buildFrontrunAnalytics
(victimHash, frontrunHash, backrunHash common.Hash, client *ethclient.Client, revertedFront, revertedBack bool
dark_forester/services/sandwicherHelper.go:209
↓ 3 callers
Function
_reinitAnalytics
()
dark_forester/services/sandwicherHelper.go:251
↓ 3 callers
Function
getTxSenderAddress
(tx *types.Transaction, client *ethclient.Client)
dark_forester/services/txHelpers.go:14
↓ 2 callers
Method
AllPairs
AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. Solidity: function allPairs(uint256 ) view returns(address pair)
dark_forester/contracts/uniswap/router.go:936
↓ 2 callers
Method
AllPairsLength
AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. Solidity: function allPairsLength() view returns(uint256)
dark_forester/contracts/uniswap/router.go:967
↓ 2 callers
Method
Allowance
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. Solidity: function allowance(address tokenOwner, address spender) vie
dark_forester/contracts/erc20/erc20.go:177
↓ 2 callers
Method
DOMAINSEPARATOR
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
dark_forester/contracts/uniswap/router.go:1485
↓ 2 callers
Method
Error
Error returns any retrieval or parsing error occurred during filtering.
dark_forester/contracts/erc20/erc20.go:449
↓ 2 callers
Method
Factory
Factory is a free data retrieval call binding the contract method 0xc45a0155. Solidity: function factory() view returns(address)
dark_forester/contracts/uniswap/abi/uniswapRouter.go:203
↓ 2 callers
Method
FeeTo
FeeTo is a free data retrieval call binding the contract method 0x017e7e58. Solidity: function feeTo() view returns(address)
dark_forester/contracts/uniswap/router.go:998
↓ 2 callers
Method
FeeToSetter
FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. Solidity: function feeToSetter() view returns(address)
dark_forester/contracts/uniswap/router.go:1029
↓ 2 callers
Method
GetAmountIn
GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn
dark_forester/contracts/uniswap/abi/uniswapRouter.go:229
↓ 2 callers
Method
GetAmountOut
GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. Solidity: function getAmountOut(uint256 amountIn, uint256 reserveI
dark_forester/contracts/uniswap/abi/uniswapRouter.go:255
↓ 2 callers
Method
GetAmountsIn
GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. Solidity: function getAmountsIn(uint256 amountOut, address[] path)
dark_forester/contracts/uniswap/abi/uniswapRouter.go:281
↓ 2 callers
Method
GetAmountsOut
GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. Solidity: function getAmountsOut(uint256 amountIn, address[] path
dark_forester/contracts/uniswap/abi/uniswapRouter.go:307
↓ 2 callers
Method
INITCODEPAIRHASH
INITCODEPAIRHASH is a free data retrieval call binding the contract method 0x5855a25a. Solidity: function INIT_CODE_PAIR_HASH() view returns(bytes32)
dark_forester/contracts/uniswap/router.go:905
↓ 2 callers
Method
KLast
KLast is a free data retrieval call binding the contract method 0x7464fc3d. Solidity: function kLast() view returns(uint256)
dark_forester/contracts/uniswap/router.go:1752
↓ 2 callers
Method
MINIMUMLIQUIDITY
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256)
dark_forester/contracts/uniswap/router.go:1516
↓ 2 callers
Method
Nonces
Nonces is a free data retrieval call binding the contract method 0x7ecebe00. Solidity: function nonces(address owner) view returns(uint256)
dark_forester/contracts/uniswap/router.go:1814
↓ 2 callers
Method
PERMITTYPEHASH
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. Solidity: function PERMIT_TYPEHASH() pure returns(bytes32)
dark_forester/contracts/uniswap/router.go:1547
↓ 2 callers
Method
Price0CumulativeLast
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. Solidity: function price0CumulativeLast() view returns(uin
dark_forester/contracts/uniswap/router.go:1845
↓ 2 callers
Method
Price1CumulativeLast
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. Solidity: function price1CumulativeLast() view returns(uin
dark_forester/contracts/uniswap/router.go:1876
↓ 2 callers
Method
Quote
Quote is a free data retrieval call binding the contract method 0xad615dec. Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reser
dark_forester/contracts/uniswap/abi/uniswapRouter.go:333
↓ 2 callers
Method
Token1
Token1 is a free data retrieval call binding the contract method 0xd21220a7. Solidity: function token1() view returns(address)
dark_forester/contracts/uniswap/router.go:1969
↓ 2 callers
Method
TotalSupply
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. Solidity: function totalSupply() view returns(uint256)
dark_forester/contracts/erc20/erc20.go:307
↓ 2 callers
Method
WETH
WETH is a free data retrieval call binding the contract method 0xad5c4648. Solidity: function WETH() view returns(address)
dark_forester/contracts/uniswap/abi/uniswapRouter.go:177
↓ 2 callers
Function
_flushAnalyticFile
(structToWrite interface{})
dark_forester/services/sandwicherHelper.go:255
↓ 2 callers
Function
_quote
(amin, reserveIn, reserveOut)
scripts/scheduler.py:23
↓ 2 callers
Function
_sharedAnalytics
(victimHash common.Hash, client *ethclient.Client, oldBalanceTrigger *big.Int)
dark_forester/services/sandwicherHelper.go:237
↓ 2 callers
Function
_waitForPendingState
(client *ethclient.Client, txHash common.Hash, ctx context.Context, txType string)
dark_forester/services/sandwicherHelper.go:168
↓ 2 callers
Function
buildSwapETHData
(tx *types.Transaction, client *ethclient.Client)
dark_forester/services/uniswapHelper.go:293
↓ 2 callers
Function
create_account
()
scripts/scheduler.py:93
↓ 2 callers
Function
getReservesData
get reserves of a PCS pair an return it
dark_forester/services/assessProfitability.go:31
↓ 2 callers
Function
loadSellers
(client *ethclient.Client, ctx context.Context)
dark_forester/services/sandwicherHelper.go:34
next →
1–100 of 745, ranked by callers