MCPcopy Create free account

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

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

↓ 1 callersFunctiondeployFakeERC20reentrancyV2
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:407
↓ 1 callersFunctiondeployFarmingRangeL2Arbitrum
(deployer: Signer)
test/deployers.ts:272
↓ 1 callersFunctiondeployOrderedPairFluid
(totalSupply: BigNumber)
test/deployers.ts:453
↓ 1 callersFunctiondeployRewardManagerTest
( farmingOwner: Signer, smardexTokenAddress: string, campaignBlock: number, )
test/deployers.ts:311
↓ 1 callersFunctiondeployRewardManagerTestL2
(farmingOwner: Signer)
test/deployers.ts:325
↓ 1 callersFunctiondeployRewardManagerTestL2Arbitrum
(farmingOwner: Signer)
test/deployers.ts:333
↓ 1 callersFunctiondeployRouterForPairTest
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:374
↓ 1 callersFunctiondeployRouterForPairTestV2
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:385
↓ 1 callersFunctiondeploySmardexFactoryTestV1
()
test/deployers.ts:94
↓ 1 callersFunctiondeploySmardexLibraryTest
()
test/deployers.ts:103
↓ 1 callersFunctiondeploySmardexLibraryTestV1
()
test/deployers.ts:111
↓ 1 callersFunctiondeploySmardexPairFluid
( smardexFactory: SmardexFactoryTest, token0: ERC20Fluid, token1: ERC20Fluid, )
test/deployers.ts:464
↓ 1 callersFunctiondeploySmardexPairTestV1
( smardexFactoryTest: SmardexFactoryTest | SmardexFactoryTestV1, token0: ERC20Test | WETH9, token1: ERC2
test/deployers.ts:153
↓ 1 callersFunctiondeployTetherToken
()
test/deployers.ts:418
↓ 1 callersFunctiondeployTokens
(router: SmardexRouter, hre: HardhatRuntimeEnvironment)
script/generateSwapGasCost.ts:132
↓ 1 callersFunctiondeployV1Pair
( token0: ERC20Test, token1: ERC20Test, smardexFactoryV1: SmardexFactoryV1, smardexRouterV2: SmardexRo
test/deployers.ts:217
↓ 1 callersFunctiongetCalculatedAveragePrice
(timeDiff: BigNumber, oldPriceAverage: BigNumber, newPrice: BigNumber)
test/SmardexPair/specs/pairPriceAverage.spec.ts:8
↓ 1 callersFunctiongetDataForTx
( farmingDataBefore: FarmingData, farmingDataUpdated: FarmingData, sdexToSplit: SdexByEndBlock[], camp
test/FarmingRange/utils.ts:120
↓ 1 callersFunctiongetDeployedAddress
(network: string, contractName: string)
script/generateSwapGasCost.ts:187
↓ 1 callersFunctiongetGasData
( router: SmardexRouter, hops: number, tokens: ERC20Test[], hre: HardhatRuntimeEnvironment, )
script/generateSwapGasCost.ts:73
↓ 1 callersFunctionlatestBlockNumberL2Arbitrum
()
test/utils.ts:154
↓ 1 callersFunctionlog2
* @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0.
test/utils.ts:75
↓ 1 callersFunctionsecondMintAndCheck
( contracts: Contracts, admin: SignerWithAddress, firstMintToken0: BigNumber, firstMintToken1: BigNumb
test/SmardexPair/utils.ts:82
↓ 1 callersFunctionsetupPair
( contracts: Contracts, signers: Signers, getAmountTestCase: GetAmountTrade, isSwapToken0ToTok
test/SmardexPair/specs/swapWithValues.spec.ts:82
↓ 1 callersFunctionsetupPair
( contracts: Contracts, signers: Signers, getAmountTestCase: GetAmountTrade, isSwapToken0ToTok
test/SmardexRouter/specs/testnetCheckFailedTest.ts:771
↓ 1 callersFunctionshouldBehaveLikeAddCampaignInfo
()
test/FarmingRange/specs/addCampaignInfo.spec.ts:3
↓ 1 callersFunctionshouldBehaveLikeAddLiquidity
()
test/SmardexRouter/specs/addLiquidity.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeAddLiquidityETH
()
test/SmardexRouter/specs/addLiquidityETH.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeAddLiquidityV1
()
test/SmardexRouter/specs/addLiquidityV1.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeAddRewardInfo
()
test/FarmingRange/specs/addRewardInfo.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeApplyKConstRuleIn
()
test/SmardexLibrary/specs/applyKConstRuleIn.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeApplyKConstRuleInV1
()
test/SmardexLibrary/specs/applyKConstRuleInV1.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeApplyKConstRuleOut
()
test/SmardexLibrary/specs/applyKConstRuleOut.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeApplyKConstRuleOutV1
()
test/SmardexLibrary/specs/applyKConstRuleOutV1.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeApproxEq
()
test/SmardexLibrary/specs/approxEq.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeCheckFailedTest
()
test/SmardexRouter/specs/testnetCheckFailedTest.ts:21
↓ 1 callersFunctionshouldBehaveLikeCheckUserBlock
()
test/Staking/specs/checkUserBlock.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeComputeFirstTradeQtyIn
()
test/SmardexLibrary/specs/computeFirstTradeQtyIn.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeComputeFirstTradeQtyInV1
()
test/SmardexLibrary/specs/computeFirstTradeQtyInV1.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeComputeFirstTradeQtyOut
()
test/SmardexLibrary/specs/computeFirstTradeQtyOut.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeComputeFirstTradeQtyOutV1
()
test/SmardexLibrary/specs/computeFirstTradeQtyOutV1.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeConstructor
()
test/SmardexFactory/deployment/constructor.ts:3
↓ 1 callersFunctionshouldBehaveLikeCurrentEndBlock
()
test/FarmingRange/specs/currentEndBlock.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeCurrentRewardPerBlock
()
test/FarmingRange/specs/currentRewardPerBlock.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeDeposit
()
test/Staking/specs/deposit.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeDeposit
()
test/FarmingRange/specs/deposit.spec.ts:9
↓ 1 callersFunctionshouldBehaveLikeDepositWithPermit
()
test/Staking/specs/depositWithPermit.spec.ts:9
↓ 1 callersFunctionshouldBehaveLikeDepositWithPermit
()
test/FarmingRange/specs/depositWithPermit.spec.ts:9
↓ 1 callersFunctionshouldBehaveLikeEmergencyWithdraw
()
test/Staking/specs/emergencyWithdraw.spec.ts:9
↓ 1 callersFunctionshouldBehaveLikeEmergencyWithdraw
()
test/FarmingRange/specs/emergencyWithdraw.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeFarmingConstructor
()
test/FarmingRange/specs/farmingConstructor.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeGetAmountIn
()
test/SmardexLibrary/specs/getAmountIn.spec.ts:21
↓ 1 callersFunctionshouldBehaveLikeGetAmountInV1
()
test/SmardexLibrary/specs/getAmountInV1.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeGetAmountOut
()
test/SmardexLibrary/specs/getAmountOut.spec.ts:21
↓ 1 callersFunctionshouldBehaveLikeGetAmountOutV1
()
test/SmardexLibrary/specs/getAmountOutV1.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeHarvest
()
test/FarmingRange/specs/harvest.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeHarvestFarming
()
test/Staking/specs/harvestFarming.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeInitializeFarming
()
test/Staking/specs/initializeFarming.spec.ts:4
↓ 1 callersFunctionshouldBehaveLikeInitializeV1
()
test/SmardexPair/specs/initializeV1.spec.ts:4
↓ 1 callersFunctionshouldBehaveLikeMintCallback
()
test/SmardexRouter/specs/mintCallback.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeOneTokenInPairBefore
()
test/SmardexPair/specs/oneTokenInPairBeforeCreation.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeRemoveLastRewardInfo
()
test/FarmingRange/specs/removeLastRewardInfo.spec.ts:11
↓ 1 callersFunctionshouldBehaveLikeRemoveLastRewardInfoMultiple
()
test/FarmingRange/specs/removeLastRewardInfoMultiple.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeRemoveLiquidity
()
test/SmardexRouter/specs/removeLiquidity.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeRemoveLiquidityETH
()
test/SmardexRouter/specs/removeLiquidityETH.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeRemoveLiquidityETHWithPermit
()
test/SmardexRouter/specs/removeLiquidityETHWithPermit.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeRemoveLiquidityWithPermit
()
test/SmardexRouter/specs/removeLiquidityWithPermit.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeRouterScenarios
()
test/SmardexRouter/specs/RouterScenarios.spec.ts:33
↓ 1 callersFunctionshouldBehaveLikeSharesToTokens
()
test/Staking/specs/sharesToTokens.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeSkim
()
test/SmardexPair/specs/skim.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeSmardexFactory
()
test/SmardexFactory/specs/SmardexFactory.ts:6
↓ 1 callersFunctionshouldBehaveLikeSmardexFactoryV2
()
test/SmardexFactory/specs/SmardexFactoryV2.spec.ts:10
↓ 1 callersFunctionshouldBehaveLikeSmardexRouterGetAmountFromPair
()
test/SmardexRouter/specs/getAmountFromPair.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeSmardexRouterPairFor
()
test/SmardexRouter/specs/pairFor.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeSmardexRouterQuote
()
test/SmardexRouter/specs/quote.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeStakingConstructor
()
test/Staking/specs/stakingConstructor.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeSwapCallback
()
test/SmardexRouter/specs/swapCallback.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeSwapETHForExactTokens
()
test/SmardexRouter/specs/swapETHForExactTokens.spec.ts:6
↓ 1 callersFunctionshouldBehaveLikeSwapExactETHForTokens
()
test/SmardexRouter/specs/swapExactETHForTokens.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeSwapExactTokensForETH
()
test/SmardexRouter/specs/swapExactTokensForETH.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeSwapExactTokensForTokens
()
test/SmardexRouter/specs/swapExactTokensForTokens.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeSwapFluid
()
test/SmardexPair/specs/swapFluid.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeSwapTokensForExactETH
()
test/SmardexRouter/specs/swapTokensForExactETH.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeSwapTokensForExactTokens
()
test/SmardexRouter/specs/swapTokensForExactTokens.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeTokensToShares
()
test/Staking/specs/tokensToShares.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeTwoTokenInPairBefore
()
test/SmardexPair/specs/twoTokensInPairBeforeCreation.spec.ts:11
↓ 1 callersFunctionshouldBehaveLikeUniswapV2ERC20
()
test/SmardexERC20/specs/UniswapV2ERC20.spec.ts:10
↓ 1 callersFunctionshouldBehaveLikeUnwrapWETH
()
test/SmardexRouter/specs/unwrapWETH.spec.ts:3
↓ 1 callersFunctionshouldBehaveLikeUpdateCampaign
()
test/FarmingRange/specs/updateCampaign.spec.ts:3
↓ 1 callersFunctionshouldBehaveLikeUpdateRewardInfo
()
test/FarmingRange/specs/updateRewardInfo.spec.ts:7
↓ 1 callersFunctionshouldBehaveLikeUpdateRewardMultiple
()
test/FarmingRange/specs/updateRewardMultiple.spec.ts:5
↓ 1 callersFunctionshouldBehaveLikeWhitelist
()
test/SmardexRouter/specs/whitelist.spec.ts:4
↓ 1 callersFunctionshouldBehaveLikeWithdraw
()
test/Staking/specs/withdraw.spec.ts:8
↓ 1 callersFunctionshouldBehaveLikeWithdraw
()
test/FarmingRange/specs/withdraw.spec.ts:7
↓ 1 callersFunctionshouldHaveStakingFunction
()
test/RewardManager/specs/rewardManagerL1.spec.ts:5
↓ 1 callersFunctionshouldRefundRewardManager
()
test/FarmingRange/specs/rewardManagerRefund.spec.ts:7
↓ 1 callersFunctionshouldRefundUnusedETH
()
test/SmardexRouter/specs/refundEth.spec.ts:9
↓ 1 callersFunctionshouldRevertAtMaxRewardLimit
()
test/FarmingRange/specs/maxRewardInfoLimit.spec.ts:4
↓ 1 callersFunctionshouldRevertAtMaxRewardLimitArbitrum
()
test/FarmingRange/specs/maxRewardInfoLimitArbitrum.spec.ts:4
↓ 1 callersFunctionshouldSetFeesUnderLimits
()
test/SmardexPair/specs/setFees.spec.ts:6
← previousnext →101–200 of 277, ranked by callers