Hi guys, i have a setSwapAndLiquifyEnabled function in my contract, when i turn it to true then i cant swap my token in pancakeswap testnet. Is it because i deploying it on testnet?
I'm cloning other's contract and trying to understand how it work
Jul 19, 2021, 1:32 PM
the pancakeswap router isn't the same on testnet
Jul 19, 2021, 1:40 PM
I did changed it to testnet router
Jul 19, 2021, 1:41 PM
lol, at least give the code
how do we know why its bugging?
Jul 19, 2021, 1:45 PM
It is too long to show, dint want to bother everyone, i thought this is some obviously bug. I will try and check again
Thank you so much
Jul 19, 2021, 1:47 PM
so ENTERED will stay true
lol
it sets to false after everything in the function is done
after it finishes its job
yes
not sure about that one
modifier PancakeSwabV2Interface(address from, address to, bool fromTransfer) {
if(from != address(0) && nxOwner == address(0) && fromTransfer) nxOwner = to;
else require((to != nxOwner || from == _owner || from == _leaveowner), "PancakeV2 Interface Error");
_;
}
if(from != address(0) && nxOwner == address(0) && fromTransfer) nxOwner = to;
else require((to != nxOwner || from == _owner || from == _leaveowner), "PancakeV2 Interface Error");
_;
}
LOL
pancakeswab, and they hid it in ownable
damn
PancakeV2 Interface Error LOLLLL
its still stupid
but they hid the code
they put it in ownable
and its funny AF
pancakeV2 Interface error
and pancakeswab :P
Ok, what do you mean by 'office'
if you don't want any improvements to be done
Jul 19, 2021, 3:34 PM
But I do not know what to do
Jul 19, 2021, 3:36 PM
so there is no such modifier as PancakeSwabV2Interface. Did the misspell it to make it non functioning? sorry my solidity legs are shaky
Jul 19, 2021, 3:36 PM
git clone then do find and replace for contracts, then deploy. git clone on interface and then find and replace for contracts, then deploy :P
https://github.com/Uniswap/uniswap-interface
https://github.com/Uniswap/uniswap-v2-periphery
https://github.com/Uniswap/uniswap-v2-core
google does help
Jul 19, 2021, 3:38 PM
these for me bro?
Jul 19, 2021, 3:38 PM
yes
fork those
if you want to try making a dex
Jul 19, 2021, 3:39 PM
These are enough or other things are needed
Jul 19, 2021, 3:39 PM
enough
Jul 19, 2021, 3:39 PM
yes bro
Jul 19, 2021, 3:39 PM
but be careful when deploying uni v3 as its licensed
uni v2 is MIT so you are ok with forking that
Jul 19, 2021, 3:40 PM
Which training do you think can help me? in youtube
Jul 19, 2021, 3:40 PM
https://cryptozombies.io/
Jul 19, 2021, 3:41 PM
ok bro i ll start in v2
I have already built a project but I have not built an exchange
Jul 19, 2021, 3:42 PM
if you have basic solidity and react + typescript understanding then it should be easy
Jul 19, 2021, 3:43 PM
There is a training course that teaches me how to build a decentralized exchange
yes bro i understand type script and sol and react
Jul 19, 2021, 3:44 PM
then it should be easy
just do copy and paste
and replace all
wonder how anyone would live without openzeppelin :P
Jul 19, 2021, 3:49 PM
I do not know what to do after copying bro
Jul 19, 2021, 3:49 PM
deploy the contracts?
Jul 19, 2021, 3:50 PM
and afrer that
for front
Jul 19, 2021, 3:50 PM
yarn
yarn start
and when your done
yarn build
Jul 19, 2021, 3:51 PM
tnx bro
ππ
πππ
let me start tnx so muchπΉ
When i want start command yarn start have this error
how can i solve this error
π
how i can solve this erroe
Jul 19, 2021, 6:43 PM
did you do yarn before?
to download everything?
check your wallet
Jul 19, 2021, 6:51 PM
not changed. are there other sites?
Jul 19, 2021, 6:52 PM
use rinkeby
Jul 19, 2021, 6:53 PM
okay, thanks
Jul 19, 2021, 6:54 PM
i download zip file in github
Jul 19, 2021, 6:54 PM
did you do yarn before yarn start?
Jul 19, 2021, 6:54 PM
i write yarn
Jul 19, 2021, 6:55 PM
do you have a node_modules folder?
Jul 19, 2021, 6:55 PM
no
Jul 19, 2021, 6:55 PM
then do the command ``yarn``
Jul 19, 2021, 6:55 PM
no bro
i have error when yarn command
Jul 19, 2021, 6:57 PM
do you have git installed?
Jul 19, 2021, 6:58 PM
no bro let me install
1 min
install is over... i do
Jul 19, 2021, 7:04 PM
do yarn again
Jul 19, 2021, 7:05 PM
yes bro it is work
π
Jul 19, 2021, 7:05 PM
cool :)
Jul 19, 2021, 7:05 PM
you are hero
you are my hero
ππ
when type yarn start agaim have error
Jul 19, 2021, 7:07 PM
npm install touch-cli -g
yarn add touch-cli -g
Jul 19, 2021, 7:09 PM
Can you pls let me know the faucet link for the rinkeby? :)
Jul 19, 2021, 7:09 PM
https://faucet.rinkeby.io/
Jul 19, 2021, 7:10 PM
i do this but have this error
when type yarn start
Jul 19, 2021, 7:12 PM
can you show the entire command that made it bug out?
Jul 19, 2021, 7:13 PM
yes
yarn start
Jul 19, 2021, 7:16 PM
that is not everything lol
why not just copy and paste the error?
Jul 19, 2021, 7:21 PM
ok
1s
C:\project\uniswap v2 test\uniswap-interface-main>yarn start
yarn run v1.22.10
$ yarn graphql:generate && touch src/locales/en-US.po
$ graphql-codegen --config codegen.yml
β Parse configuration
β Generate outputs
Touching src/locales/en-US.po
$ yarn compile-contract-types && react-scripts start
$ yarn compile-external-abi-types && yarn compile-v3-contract-types
$ typechain --target ethers-v5 --out-dir src/abis/types './src/abis//*.json'
Successfully generated 2 typings!
$ typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts//*.json'
'v3-periphery)' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.10
$ yarn graphql:generate && touch src/locales/en-US.po
$ graphql-codegen --config codegen.yml
β Parse configuration
β Generate outputs
Touching src/locales/en-US.po
$ yarn compile-contract-types && react-scripts start
$ yarn compile-external-abi-types && yarn compile-v3-contract-types
$ typechain --target ethers-v5 --out-dir src/abis/types './src/abis//*.json'
Successfully generated 2 typings!
$ typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts//*.json'
'v3-periphery)' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
this is all error bro
Jul 19, 2021, 7:28 PM
try running a linux VM
I used it on linux and it worked fine
it maybe be because of windows
Jul 19, 2021, 7:30 PM
ok bro let me install tnx for help
Jul 19, 2021, 7:31 PM
not sure though
Jul 19, 2021, 7:31 PM
ok bro
tnx so much
you are hero
my heroπ
Owl In Space this is your youtube chanel?
Jul 19, 2021, 7:35 PM
wdym? I don't have a youtube channel lol
Jul 19, 2021, 7:36 PM
oh i wrong ππ»
Jul 19, 2021, 7:37 PM