Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cjthoma1/flashswap-arbitrage-avalanche
/ functions
Functions
41 in github.com/cjthoma1/flashswap-arbitrage-avalanche
⨍
Functions
41
◇
Types & classes
6
↓ 55 callers
Function
expandTo18Decimals
(n: number)
shared/utilities.ts:16
↓ 23 callers
Function
isLocalEnv
(envName: string)
shared/utilities.ts:32
↓ 13 callers
Function
getChainlinkPrice
(options: ChainlinkPriceOptions)
shared/utilities.ts:39
↓ 11 callers
Function
bigNumberToNumber
(number: BigNumber)
shared/utilities.ts:24
↓ 8 callers
Function
expandToXDecimals
(n: number, expandAmount: number)
shared/utilities.ts:20
↓ 8 callers
Function
setupPangolinTraderJoe
(firstTokenAddress: string, secondTokenAddress: string, swapFrom: ContractOptions )
scripts/flash-arb/services/setup/setup-pangolin-trader-joe.ts:7
↓ 6 callers
Function
swapMainToPartner
( arbitrageAmount: BigNumber, primaryTokenPair: Contract, secondaryTokenPair: Contract, mainTokenAddress:
scripts/flash-arb/services/swap/swap-main-to-partner.ts:6
↓ 6 callers
Function
swapPartnerToMain
( arbitrageAmount: BigNumber, primaryTokenPair: Contract, secondaryTokenPair: Contract, partnerTokenAddres
scripts/flash-arb/services/swap/swap-partner-to-main.ts:6
↓ 4 callers
Function
setupPangolinSushi
(firstTokenAddress: string, secondTokenAddress: string, swapFrom: ContractOptions )
scripts/flash-arb/services/setup/setup-pangolin-sushi.ts:7
↓ 2 callers
Function
calculateGasCost
()
shared/utilities.ts:83
↓ 2 callers
Function
sleep
(ms)
scripts/fund-cchain-addresses.js:7
↓ 1 callers
Function
calculateGasFee
* Takes a transaction response and calculates the amount of gas used and converts * it to AVAX. Prints results to console. * * @param {Transactio
scripts/example.js:21
↓ 1 callers
Function
main
()
scripts/deploy.ts:7
↓ 1 callers
Function
main
()
scripts/storage.ts:10
↓ 1 callers
Function
main
()
scripts/fund-cchain-addresses.js:80
↓ 1 callers
Function
main
()
scripts/sendAvaxJSONProvider.ts:9
↓ 1 callers
Function
main
()
scripts/nft.ts:6
↓ 1 callers
Function
main
()
scripts/erc20.ts:11
↓ 1 callers
Function
main
()
scripts/sendAvaxWalletSigner.ts:14
↓ 1 callers
Function
main
* Empty. Try calling some functions here.
scripts/example.js:10
↓ 1 callers
Function
runBot
()
scripts/flash-arb/pangolin/pangolin-trader-joe-swap-usdt-wavax.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/pangolin/pangolin-sushi-swap-wavax-usdt.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/pangolin/pangolin-sushi-swap-usdt-wavax.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/pangolin/pangolin-trader-joe-swap-joe-wavax.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/pangolin/pangolin-trader-joe-swap-wavax-joe.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/pangolin/pangolin-trader-joe-swap-wavax-usdt.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/sushi/sushi-pangolin-swap-usdt-wavax.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/sushi/sushi-pangolin-swap-wavax-usdt.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-usdt-wavax.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-wavax-usdt.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-wavax-joe.ts:9
↓ 1 callers
Function
runBot
()
scripts/flash-arb/trader-joe/trader-joe-pangolin-swap-joe-wavax.ts:9
↓ 1 callers
Function
waitForUtxo
()
scripts/fund-cchain-addresses.js:69
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/01_deploy_flash_swap_sushi_pango.ts:4
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/05_deploy_flash_swap_pangot_trader_joe.ts:4
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/04_deploy_trader_joe_liquidity_compute.ts:4
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/00_deploy_flash_swap_pango_sushi.ts:4
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/02_deploy_pangolin_liquidity_compute.ts:4
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/03_deploy_uniswap_liquidity_compute.ts:4
Function
func
(hre: HardhatRuntimeEnvironment)
deploy/06_deploy_flash_swap_trader_joe_pango.ts:4
Function
sendERC20
* Calls transfer on the provided contract. Transfers the ERC20 from the from signer * to the to signer for the amount of amount. * * @param {Sign
scripts/example.js:41