Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmarDex-Dev/smart-contracts
/ functions
Functions
277 in github.com/SmarDex-Dev/smart-contracts
⨍
Functions
277
◇
Types & classes
19
↓ 1 callers
Function
deployFakeERC20reentrancyV2
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:407
↓ 1 callers
Function
deployFarmingRangeL2Arbitrum
(deployer: Signer)
test/deployers.ts:272
↓ 1 callers
Function
deployOrderedPairFluid
(totalSupply: BigNumber)
test/deployers.ts:453
↓ 1 callers
Function
deployRewardManagerTest
( farmingOwner: Signer, smardexTokenAddress: string, campaignBlock: number, )
test/deployers.ts:311
↓ 1 callers
Function
deployRewardManagerTestL2
(farmingOwner: Signer)
test/deployers.ts:325
↓ 1 callers
Function
deployRewardManagerTestL2Arbitrum
(farmingOwner: Signer)
test/deployers.ts:333
↓ 1 callers
Function
deployRouterForPairTest
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:374
↓ 1 callers
Function
deployRouterForPairTestV2
( smardexFactory: SmardexFactory | SmardexFactoryV1, WETH: WETH9, )
test/deployers.ts:385
↓ 1 callers
Function
deploySmardexFactoryTestV1
()
test/deployers.ts:94
↓ 1 callers
Function
deploySmardexLibraryTest
()
test/deployers.ts:103
↓ 1 callers
Function
deploySmardexLibraryTestV1
()
test/deployers.ts:111
↓ 1 callers
Function
deploySmardexPairFluid
( smardexFactory: SmardexFactoryTest, token0: ERC20Fluid, token1: ERC20Fluid, )
test/deployers.ts:464
↓ 1 callers
Function
deploySmardexPairTestV1
( smardexFactoryTest: SmardexFactoryTest | SmardexFactoryTestV1, token0: ERC20Test | WETH9, token1: ERC2
test/deployers.ts:153
↓ 1 callers
Function
deployTetherToken
()
test/deployers.ts:418
↓ 1 callers
Function
deployTokens
(router: SmardexRouter, hre: HardhatRuntimeEnvironment)
script/generateSwapGasCost.ts:132
↓ 1 callers
Function
deployV1Pair
( token0: ERC20Test, token1: ERC20Test, smardexFactoryV1: SmardexFactoryV1, smardexRouterV2: SmardexRo
test/deployers.ts:217
↓ 1 callers
Function
getCalculatedAveragePrice
(timeDiff: BigNumber, oldPriceAverage: BigNumber, newPrice: BigNumber)
test/SmardexPair/specs/pairPriceAverage.spec.ts:8
↓ 1 callers
Function
getDataForTx
( farmingDataBefore: FarmingData, farmingDataUpdated: FarmingData, sdexToSplit: SdexByEndBlock[], camp
test/FarmingRange/utils.ts:120
↓ 1 callers
Function
getDeployedAddress
(network: string, contractName: string)
script/generateSwapGasCost.ts:187
↓ 1 callers
Function
getGasData
( router: SmardexRouter, hops: number, tokens: ERC20Test[], hre: HardhatRuntimeEnvironment, )
script/generateSwapGasCost.ts:73
↓ 1 callers
Function
latestBlockNumberL2Arbitrum
()
test/utils.ts:154
↓ 1 callers
Function
log2
* @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0.
test/utils.ts:75
↓ 1 callers
Function
secondMintAndCheck
( contracts: Contracts, admin: SignerWithAddress, firstMintToken0: BigNumber, firstMintToken1: BigNumb
test/SmardexPair/utils.ts:82
↓ 1 callers
Function
setupPair
( contracts: Contracts, signers: Signers, getAmountTestCase: GetAmountTrade, isSwapToken0ToTok
test/SmardexPair/specs/swapWithValues.spec.ts:82
↓ 1 callers
Function
setupPair
( contracts: Contracts, signers: Signers, getAmountTestCase: GetAmountTrade, isSwapToken0ToTok
test/SmardexRouter/specs/testnetCheckFailedTest.ts:771
↓ 1 callers
Function
shouldBehaveLikeAddCampaignInfo
()
test/FarmingRange/specs/addCampaignInfo.spec.ts:3
↓ 1 callers
Function
shouldBehaveLikeAddLiquidity
()
test/SmardexRouter/specs/addLiquidity.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeAddLiquidityETH
()
test/SmardexRouter/specs/addLiquidityETH.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeAddLiquidityV1
()
test/SmardexRouter/specs/addLiquidityV1.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeAddRewardInfo
()
test/FarmingRange/specs/addRewardInfo.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeApplyKConstRuleIn
()
test/SmardexLibrary/specs/applyKConstRuleIn.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeApplyKConstRuleInV1
()
test/SmardexLibrary/specs/applyKConstRuleInV1.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeApplyKConstRuleOut
()
test/SmardexLibrary/specs/applyKConstRuleOut.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeApplyKConstRuleOutV1
()
test/SmardexLibrary/specs/applyKConstRuleOutV1.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeApproxEq
()
test/SmardexLibrary/specs/approxEq.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeCheckFailedTest
()
test/SmardexRouter/specs/testnetCheckFailedTest.ts:21
↓ 1 callers
Function
shouldBehaveLikeCheckUserBlock
()
test/Staking/specs/checkUserBlock.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeComputeFirstTradeQtyIn
()
test/SmardexLibrary/specs/computeFirstTradeQtyIn.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeComputeFirstTradeQtyInV1
()
test/SmardexLibrary/specs/computeFirstTradeQtyInV1.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeComputeFirstTradeQtyOut
()
test/SmardexLibrary/specs/computeFirstTradeQtyOut.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeComputeFirstTradeQtyOutV1
()
test/SmardexLibrary/specs/computeFirstTradeQtyOutV1.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeConstructor
()
test/SmardexFactory/deployment/constructor.ts:3
↓ 1 callers
Function
shouldBehaveLikeCurrentEndBlock
()
test/FarmingRange/specs/currentEndBlock.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeCurrentRewardPerBlock
()
test/FarmingRange/specs/currentRewardPerBlock.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeDeposit
()
test/Staking/specs/deposit.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeDeposit
()
test/FarmingRange/specs/deposit.spec.ts:9
↓ 1 callers
Function
shouldBehaveLikeDepositWithPermit
()
test/Staking/specs/depositWithPermit.spec.ts:9
↓ 1 callers
Function
shouldBehaveLikeDepositWithPermit
()
test/FarmingRange/specs/depositWithPermit.spec.ts:9
↓ 1 callers
Function
shouldBehaveLikeEmergencyWithdraw
()
test/Staking/specs/emergencyWithdraw.spec.ts:9
↓ 1 callers
Function
shouldBehaveLikeEmergencyWithdraw
()
test/FarmingRange/specs/emergencyWithdraw.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeFarmingConstructor
()
test/FarmingRange/specs/farmingConstructor.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeGetAmountIn
()
test/SmardexLibrary/specs/getAmountIn.spec.ts:21
↓ 1 callers
Function
shouldBehaveLikeGetAmountInV1
()
test/SmardexLibrary/specs/getAmountInV1.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeGetAmountOut
()
test/SmardexLibrary/specs/getAmountOut.spec.ts:21
↓ 1 callers
Function
shouldBehaveLikeGetAmountOutV1
()
test/SmardexLibrary/specs/getAmountOutV1.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeHarvest
()
test/FarmingRange/specs/harvest.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeHarvestFarming
()
test/Staking/specs/harvestFarming.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeInitializeFarming
()
test/Staking/specs/initializeFarming.spec.ts:4
↓ 1 callers
Function
shouldBehaveLikeInitializeV1
()
test/SmardexPair/specs/initializeV1.spec.ts:4
↓ 1 callers
Function
shouldBehaveLikeMintCallback
()
test/SmardexRouter/specs/mintCallback.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeOneTokenInPairBefore
()
test/SmardexPair/specs/oneTokenInPairBeforeCreation.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeRemoveLastRewardInfo
()
test/FarmingRange/specs/removeLastRewardInfo.spec.ts:11
↓ 1 callers
Function
shouldBehaveLikeRemoveLastRewardInfoMultiple
()
test/FarmingRange/specs/removeLastRewardInfoMultiple.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeRemoveLiquidity
()
test/SmardexRouter/specs/removeLiquidity.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeRemoveLiquidityETH
()
test/SmardexRouter/specs/removeLiquidityETH.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeRemoveLiquidityETHWithPermit
()
test/SmardexRouter/specs/removeLiquidityETHWithPermit.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeRemoveLiquidityWithPermit
()
test/SmardexRouter/specs/removeLiquidityWithPermit.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeRouterScenarios
()
test/SmardexRouter/specs/RouterScenarios.spec.ts:33
↓ 1 callers
Function
shouldBehaveLikeSharesToTokens
()
test/Staking/specs/sharesToTokens.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeSkim
()
test/SmardexPair/specs/skim.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeSmardexFactory
()
test/SmardexFactory/specs/SmardexFactory.ts:6
↓ 1 callers
Function
shouldBehaveLikeSmardexFactoryV2
()
test/SmardexFactory/specs/SmardexFactoryV2.spec.ts:10
↓ 1 callers
Function
shouldBehaveLikeSmardexRouterGetAmountFromPair
()
test/SmardexRouter/specs/getAmountFromPair.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeSmardexRouterPairFor
()
test/SmardexRouter/specs/pairFor.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeSmardexRouterQuote
()
test/SmardexRouter/specs/quote.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeStakingConstructor
()
test/Staking/specs/stakingConstructor.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeSwapCallback
()
test/SmardexRouter/specs/swapCallback.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeSwapETHForExactTokens
()
test/SmardexRouter/specs/swapETHForExactTokens.spec.ts:6
↓ 1 callers
Function
shouldBehaveLikeSwapExactETHForTokens
()
test/SmardexRouter/specs/swapExactETHForTokens.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeSwapExactTokensForETH
()
test/SmardexRouter/specs/swapExactTokensForETH.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeSwapExactTokensForTokens
()
test/SmardexRouter/specs/swapExactTokensForTokens.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeSwapFluid
()
test/SmardexPair/specs/swapFluid.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeSwapTokensForExactETH
()
test/SmardexRouter/specs/swapTokensForExactETH.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeSwapTokensForExactTokens
()
test/SmardexRouter/specs/swapTokensForExactTokens.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeTokensToShares
()
test/Staking/specs/tokensToShares.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeTwoTokenInPairBefore
()
test/SmardexPair/specs/twoTokensInPairBeforeCreation.spec.ts:11
↓ 1 callers
Function
shouldBehaveLikeUniswapV2ERC20
()
test/SmardexERC20/specs/UniswapV2ERC20.spec.ts:10
↓ 1 callers
Function
shouldBehaveLikeUnwrapWETH
()
test/SmardexRouter/specs/unwrapWETH.spec.ts:3
↓ 1 callers
Function
shouldBehaveLikeUpdateCampaign
()
test/FarmingRange/specs/updateCampaign.spec.ts:3
↓ 1 callers
Function
shouldBehaveLikeUpdateRewardInfo
()
test/FarmingRange/specs/updateRewardInfo.spec.ts:7
↓ 1 callers
Function
shouldBehaveLikeUpdateRewardMultiple
()
test/FarmingRange/specs/updateRewardMultiple.spec.ts:5
↓ 1 callers
Function
shouldBehaveLikeWhitelist
()
test/SmardexRouter/specs/whitelist.spec.ts:4
↓ 1 callers
Function
shouldBehaveLikeWithdraw
()
test/Staking/specs/withdraw.spec.ts:8
↓ 1 callers
Function
shouldBehaveLikeWithdraw
()
test/FarmingRange/specs/withdraw.spec.ts:7
↓ 1 callers
Function
shouldHaveStakingFunction
()
test/RewardManager/specs/rewardManagerL1.spec.ts:5
↓ 1 callers
Function
shouldRefundRewardManager
()
test/FarmingRange/specs/rewardManagerRefund.spec.ts:7
↓ 1 callers
Function
shouldRefundUnusedETH
()
test/SmardexRouter/specs/refundEth.spec.ts:9
↓ 1 callers
Function
shouldRevertAtMaxRewardLimit
()
test/FarmingRange/specs/maxRewardInfoLimit.spec.ts:4
↓ 1 callers
Function
shouldRevertAtMaxRewardLimitArbitrum
()
test/FarmingRange/specs/maxRewardInfoLimitArbitrum.spec.ts:4
↓ 1 callers
Function
shouldSetFeesUnderLimits
()
test/SmardexPair/specs/setFees.spec.ts:6
← previous
next →
101–200 of 277, ranked by callers