MCPcopy Create free account

hub / github.com/LearnWeb3DAO/Defi-Exchange / functions

Functions23 in github.com/LearnWeb3DAO/Defi-Exchange

↓ 8 callersFunctiongetProviderOrSigner
(needSigner = false)
my-app/pages/index.js:289
↓ 4 callersFunctiongetAmounts
()
my-app/pages/index.js:75
↓ 4 callersFunctiongetEtherBalance
(provider, address, contract = false)
my-app/utils/getAmounts.js:12
↓ 2 callersFunctiongetReserveOfCDTokens
(provider)
my-app/utils/getAmounts.js:70
↓ 1 callersFunctionaddLiquidity
( signer, addCDAmountWei, addEtherAmountWei )
my-app/utils/addLiquidity.js:16
↓ 1 callersFunctionconnectWallet
()
my-app/pages/index.js:262
↓ 1 callersFunctiongetAmountOfTokensReceivedFromSwap
( _swapAmountWei, provider, ethSelected, ethBalance, reservedCD )
my-app/utils/swap.js:13
↓ 1 callersFunctiongetCDTokensBalance
(provider, address)
my-app/utils/getAmounts.js:34
↓ 1 callersFunctiongetLPTokensBalance
(provider, address)
my-app/utils/getAmounts.js:52
↓ 1 callersFunctiongetTokensAfterRemove
( provider, removeLPTokenWei, _ethBalance, cryptoDevTokenReserve )
my-app/utils/removeLiquidity.js:24
↓ 1 callersFunctionmain
()
hardhat-tutorial/scripts/sample-script.js:8
↓ 1 callersFunctionmain
()
hardhat-tutorial/scripts/deploy.js:5
↓ 1 callersFunctionremoveLiquidity
(signer, removeLPTokensWei)
my-app/utils/removeLiquidity.js:8
↓ 1 callersFunctionswapTokens
( signer, swapAmountWei, tokenToBeReceivedAfterSwap, ethSelected )
my-app/utils/swap.js:53
FunctionMyApp
({ Component, pageProps })
my-app/pages/_app.js:3
Function_addLiquidity
()
my-app/pages/index.js:176
Function_getAmountOfTokensReceivedFromSwap
(_swapAmount)
my-app/pages/index.js:138
Function_getTokensAfterRemove
(_removeLPTokens)
my-app/pages/index.js:234
Function_removeLiquidity
()
my-app/pages/index.js:209
Function_swapTokens
()
my-app/pages/index.js:106
FunctioncalculateCD
( _addEther = "0", etherBalanceContract, cdTokenReserve )
my-app/utils/addLiquidity.js:55
Functionhandler
(req, res)
my-app/pages/api/hello.js:3
FunctionrenderButton
()
my-app/pages/index.js:330