MCPcopy Create free account

hub / github.com/SmarDex-Dev/smart-contracts / functions

Functions277 in github.com/SmarDex-Dev/smart-contracts

↓ 141 callersFunctionadvanceBlockTo
(block: number)
test/helpers/time.ts:51
↓ 74 callersFunctionlatestBlockNumber
()
test/helpers/time.ts:9
↓ 73 callersFunctionparseShare
(share: BigNumber)
test/Staking/utils.ts:9
↓ 41 callersFunctionisInRange
(result: BigNumber, compared: BigNumber, PCT: BigNumber, BASE: BigNumber)
test/SmardexLibrary/utils.ts:304
↓ 32 callersFunctionunitFixtureCampaignWith2rewards
( farming: Awaited<ReturnType<typeof unitFixtureFarmingRange>>, signer: Signer, initialBonusPerBlock: Bi
test/fixtures.ts:578
↓ 30 callersFunctiondebug_log
(msg: string)
test/SmardexRouter/specs/BestTrade.spec.ts:16
↓ 24 callersFunctiongetUserBalances
( signer: SignerWithAddress, token0: ERC20Test, token1: ERC20Test, WETHPartner: ERC20Test, WETH9: WE
test/SmardexRouter/specs/RouterScenarios.spec.ts:17
↓ 21 callersFunctioncheckPairBalance
(pair: string)
test/SmardexRouter/specs/refundEth.spec.ts:13
↓ 18 callersFunctiongetPermitSignature
( signer: SignerWithAddress, token: ERC20Permit | SmardexPair, spender: string, value: BigNumberish =
test/utils.ts:13
↓ 13 callersFunctionmake_a_trade
( amount0: BigNumber, signer: SignerWithAddress, contracts: Contracts | { smardexRouter: SmardexRouter;
test/SmardexRouter/specs/BestTrade.spec.ts:20
↓ 13 callersFunctionunitFixtureCommon
(amount: BigNumber)
test/fixtures.ts:52
↓ 11 callersFunctiondeployERC20Test
(total_supply: BigNumber)
test/deployers.ts:60
↓ 9 callersFunctiongetSwapEncodedData
(payer: string, path: string)
test/utils.ts:9
↓ 9 callersFunctionshow_reserves
(contracts: Contracts | { smardexPair: SmardexPair })
test/SmardexRouter/specs/BestTrade.spec.ts:56
↓ 8 callersFunctionaddLiquidity
( token0Amount: BigNumber, token1Amount: BigNumber, token0: ERC20Test, token1: ERC20Test, router: Sm
test/SmardexRouter/utils.ts:54
↓ 8 callersFunctiondeploySmardexFactory
()
test/deployers.ts:68
↓ 8 callersFunctiondeploySmardexPair
( smardexFactory: SmardexFactory | SmardexFactoryV1, token0: ERC20Test | WETH9, token1: ERC20Test | WETH
test/deployers.ts:119
↓ 8 callersFunctionswapTest
( contracts: Contracts, signers: Signers, getAmountTestCase: GetAmountTrade, isExactTokenIn: b
test/SmardexPair/specs/swapWithValues.spec.ts:54
↓ 7 callersFunctionaddLiquidity
( contracts: Contracts, admin: SignerWithAddress, token0Amount: BigNumber, token1Amount: BigNumber, )
test/SmardexPair/utils.ts:13
↓ 7 callersFunctiondeploySmardexFactoryV1
()
test/deployers.ts:77
↓ 6 callersFunctiondeploySmardexRouterTest
( smardexFactory: SmardexFactory | SmardexFactoryTest | SmardexFactoryV1 | SmardexFactoryTestV1, weth: WET
test/deployers.ts:173
↓ 6 callersFunctiongetGasUsedAverage
( router: SmardexRouter, path: string[], exactInput: boolean, hre: HardhatRuntimeEnvironment, )
script/generateSwapGasCost.ts:92
↓ 6 callersFunctionrandomAmount
(hre: HardhatRuntimeEnvironment)
script/generateSwapGasCost.ts:195
↓ 6 callersFunctionunitFixtureSmardexRouter
()
test/fixtures.ts:331
↓ 5 callersFunctionaddCampaignAndCreateRewards
( farming: Awaited<ReturnType<typeof unitFixtureFarmingRange>>, user: string, admin: string, )
test/FarmingRange/utils.ts:581
↓ 5 callersFunctioncreatePair
( tokens: [string, string], smardexFactory: SmardexFactory | SmardexFactoryV1, bytecode: string, )
test/SmardexFactory/utils.ts:22
↓ 5 callersFunctiondeploySmardexPairV1
( smardexFactory: SmardexFactory | SmardexFactoryV1, token0: ERC20Test | WETH9, token1: ERC20Test | WETH
test/deployers.ts:130
↓ 5 callersFunctiondeploySmardexRouterV2WithV1Factory
( smardexFactory: SmardexFactory | SmardexFactoryV1, weth: WETH9, )
test/deployers.ts:206
↓ 5 callersFunctiondeploySmardexToken
(name: string, symbol: string, supply: BigNumber)
test/deployers.ts:241
↓ 5 callersFunctionunitFixtureTokensAndPairWithFactory
(factory: SmardexFactory | SmardexFactoryV1)
test/fixtures.ts:490
↓ 4 callersFunctionaddRewardsInfos
( nbRewardInfo: number, farming: FarmingRange | FarmingRangeL2Arbitrum, stakingToken: ERC20Test, rewar
test/FarmingRange/utils.ts:513
↓ 4 callersFunctionburnAndCheck
( contracts: Contracts, admin: SignerWithAddress, lpToBurn: BigNumber, expectedToken0: BigNumber, ex
test/SmardexPair/utils.ts:130
↓ 4 callersFunctioncheckTotalRewards
(farming: FarmingRange)
test/FarmingRange/utils.ts:52
↓ 4 callersFunctiondeployCallbackTestRouter
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:362
↓ 4 callersFunctiondeployOrderedPairOfERC20
(totalSupply: BigNumber)
test/deployers.ts:49
↓ 4 callersFunctiondeploySmardexRouter
( smardexFactory: SmardexFactory | SmardexFactoryV1, weth: WETH9, )
test/deployers.ts:195
↓ 4 callersFunctiondeployWETH9
()
test/deployers.ts:165
↓ 4 callersFunctionsetupPair
(contracts: Contracts, signers: Signers)
test/SmardexPair/specs/swapFluid.spec.ts:10
↓ 4 callersFunctionshouldBehaveLikeSwap
()
test/SmardexPair/specs/swap.spec.ts:7
↓ 4 callersFunctionsqrt
(a: BigNumber)
test/utils.ts:123
↓ 3 callersFunctiondeployAutoSwapperL1
( factoryAddress: string, sdexTokenAddress: string, stakingContractAddress: string, routerContractAddr
test/deployers.ts:281
↓ 3 callersFunctiondeployDoubleSwapRouter
()
test/deployers.ts:342
↓ 3 callersFunctiondeployPool
( token0: ERC20, amount0: BigNumber, token1: ERC20, amount1: BigNumber, smardexRouter: SmardexRouter
test/AutoSwapper/utils.ts:6
↓ 3 callersFunctiondeploySmardexFactoryTest
()
test/deployers.ts:85
↓ 3 callersFunctiondeployStaking
(smardexTokenAddress: string, farmingAddress: string)
test/deployers.ts:437
↓ 3 callersFunctiongetCreate2Address
( factoryAddress: string, [tokenA, tokenB]: [string, string], bytecode: string, )
test/SmardexFactory/utils.ts:8
↓ 3 callersFunctionincrease
(duration: BigNumber)
test/helpers/time.ts:22
↓ 3 callersFunctionisRewardInfoAfter
( farmingData: FarmingData, campaignIndex: number, rewardInfoIndex: number, blockNumberToBeExecuted: n
test/FarmingRange/utils.ts:464
↓ 3 callersFunctionisRewardInfoCrossing
( farmingData: FarmingData, campaignIndex: number, rewardInfoIndex: number, blockNumberToBeExecuted: n
test/FarmingRange/utils.ts:476
↓ 3 callersFunctionlatest
()
test/helpers/time.ts:4
↓ 3 callersFunctionshouldBehaveLikeRewardManager
()
test/RewardManager/specs/rewardManager.spec.ts:19
↓ 3 callersFunctionswapBothTokens
( router: SmardexRouter, amountIn: BigNumber, token0: ERC20Test, token1: ERC20Test, adminAddress: st
test/AutoSwapper/specs/autoSwapper.spec.ts:34
↓ 3 callersFunctionunitFixtureRewardManagerData
()
test/fixtures.ts:689
↓ 2 callersFunctionaddCampaignReward
( farmingData: FarmingData, endBlock: BigNumber[], rewardPerBlock: BigNumber[], campaignIndex: number,
test/FarmingRange/utils.ts:395
↓ 2 callersFunctionadvanceBlock
()
test/helpers/time.ts:14
↓ 2 callersFunctionassertAlmostEqual
(expected: string, actual: string)
test/helpers/assert.ts:6
↓ 2 callersFunctioncheckDataFarming
( farming: FarmingRange, campaignId: number[], rewardIndex: number[][], endBlock: number[][],
test/SmardexRouter/specs/testnetCheckFailedTest.ts:748
↓ 2 callersFunctioncreatePair
(tokens: [string, string], smardexFactory: SmardexFactory)
test/SmardexFactory/specs/SmardexFactory.spec.ts:20
↓ 2 callersFunctiondeployArbSysCore
()
test/deployers.ts:257
↓ 2 callersFunctiondeployCallbackTestRouterV2
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:350
↓ 2 callersFunctiondeployERC20Fluid
(total_supply: BigNumber)
test/deployers.ts:445
↓ 2 callersFunctiondeployFarmingRange
(deployer: Signer)
test/deployers.ts:249
↓ 2 callersFunctiondeployRouterEventEmitter
()
test/deployers.ts:233
↓ 2 callersFunctiondeploySmardexPairTest
( smardexFactoryTest: SmardexFactoryTest | SmardexFactoryTestV1, token0: ERC20Test | WETH9, token1: ERC2
test/deployers.ts:141
↓ 2 callersFunctiondeploySmardexRouterTestV2
( smardexFactory: SmardexFactory | SmardexFactoryTest | SmardexFactoryV1 | SmardexFactoryTestV1, weth: WET
test/deployers.ts:184
↓ 2 callersFunctiondeterminePairAddress
(token0: ERC20Test, token1: ERC20Test, factory: SmardexFactory)
test/fixtures.ts:241
↓ 2 callersFunctionfarmingRangeTests
()
test/FarmingRange/FarmingRange.ts:73
↓ 2 callersFunctiongenerateNewRewardPerBlock
( farmingData: FarmingData, sdexToSplit: SdexByEndBlock[], campaignId: number, blockNumberToBeExecuted
test/FarmingRange/utils.ts:224
↓ 2 callersFunctiongetAmountsParams
(side: number)
test/SmardexLibrary/utils.ts:280
↓ 2 callersFunctiongetGasUsed
(router: SmardexRouter, path: string[], exactInput: boolean, hre: HardhatRuntimeEnvironment)
script/generateSwapGasCost.ts:103
↓ 2 callersFunctiongetIndexByEndBlock
(data: SdexByEndBlock[], endBlockToFind: number)
test/FarmingRange/utils.ts:64
↓ 2 callersFunctiongetProfitFromAddLiquidityAndSwap
( contracts: Contracts, admin: SignerWithAddress, user: SignerWithAddress, )
test/SmardexPair/specs/twoTokensInPairBeforeCreation.spec.ts:55
↓ 2 callersFunctiongetTestTokenArgs
(token: Token)
deploy/utils.ts:181
↓ 2 callersFunctiongetTetherTokenArgs
()
deploy/utils.ts:185
↓ 2 callersFunctioninitializeFarmingCampaign
( startBlock: BigNumber, initialBonusPerBlock: BigNumber, nextPeriodRewardPerBlock: BigNumber, farming
test/fixtures.ts:638
↓ 2 callersFunctionmintAndCheck
( contracts: Contracts, admin: SignerWithAddress, token0Amount: BigNumber, token1Amount: BigNumber,
test/SmardexPair/utils.ts:36
↓ 2 callersFunctionsendEtherTo
(qty: BigNumber, adr: string, provider: any)
deploy/utils.ts:8
↓ 2 callersFunctionsendTokensToPair
(contracts: Contracts, token0Amount: BigNumber, token1Amount: BigNumber)
test/SmardexPair/utils.ts:8
↓ 2 callersFunctionsetupFarmingRangeSigners
( fixtures: Awaited<ReturnType<typeof setupFarmingRangeTokens>>, farmingRange: FarmingRange, )
test/fixtures.ts:555
↓ 2 callersFunctionsetupFarmingRangeTokens
()
test/fixtures.ts:501
↓ 2 callersFunctionsetupTest
( admin: SignerWithAddress, alice: SignerWithAddress, permitAmount: BigNumber, farming
test/FarmingRange/specs/depositWithPermit.spec.ts:18
↓ 2 callersFunctionshouldBehaveLikeAutoSwapper
()
test/AutoSwapper/specs/autoSwapper.spec.ts:57
↓ 2 callersFunctionshouldBehaveLikeBurn
()
test/SmardexPair/specs/burn.spec.ts:7
↓ 2 callersFunctionshouldBehaveLikeComputeFictiveReserves
()
test/SmardexLibrary/specs/computeFictiveReserves.spec.ts:4
↓ 2 callersFunctionshouldBehaveLikeGetUpdatedPriceAverage
()
test/SmardexLibrary/specs/getUpdatedPriceAverage.spec.ts:6
↓ 2 callersFunctionshouldBehaveLikeInitialize
()
test/SmardexPair/specs/initialize.spec.ts:3
↓ 2 callersFunctionshouldBehaveLikeMint
()
test/SmardexPair/specs/mint.spec.ts:7
↓ 2 callersFunctionshouldBehaveLikeSmardexPairPriceAverage
()
test/SmardexPair/specs/pairPriceAverage.spec.ts:12
↓ 2 callersFunctionshouldBehaveLikeSwapWithValues
(v1: boolean)
test/SmardexPair/specs/swapWithValues.spec.ts:11
↓ 2 callersFunctionunitFixtureAutoSwapperData
()
test/fixtures.ts:653
↓ 1 callersFunctionaddLiquidity
( token0Amount: BigNumber, token1Amount: BigNumber, token0: ERC20Test, token1: ERC20Test, router: Sm
test/AutoSwapper/specs/autoSwapper.spec.ts:9
↓ 1 callersFunctionargsWethArbitrumGoerli
()
deploy/utils.ts:19
↓ 1 callersFunctionbaseContext
(description: string, hooks: () => void)
test/contexts.ts:9
↓ 1 callersFunctioncheckFees
( contracts: Contracts, amountIn: BigNumber, getAmountTestCase: GetAmountTrade, isFeeToSet: bo
test/SmardexPair/specs/swapWithValues.spec.ts:179
↓ 1 callersFunctioncheckResults
( contracts: Contracts, signers: Signers, getAmountTestCase: GetAmountTrade, isSwapToken0ToTok
test/SmardexPair/specs/swapWithValues.spec.ts:129
↓ 1 callersFunctioncomputeFarmingSdexValueOneCampaign
(farmingData: FarmingData, campaignId: number)
test/FarmingRange/utils.ts:349
↓ 1 callersFunctioncomputeFarmingSdexValueOneRewardInfo
( farmingData: FarmingData, campaignId: number, rewardIndex: number, )
test/FarmingRange/utils.ts:359
↓ 1 callersFunctiondeployAutoSwapperL2
( factoryAddress: string, sdexTokenAddress: string, routerContractAddress: string, )
test/deployers.ts:299
↓ 1 callersFunctiondeployCheckBlockTest
( stakingAddress: string, smardexTokenAddress: string, )
test/deployers.ts:426
↓ 1 callersFunctiondeployFakeERC20reentrancy
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:396
next →1–100 of 277, ranked by callers