How I can transfer different tokens in contract? how solidity understand, what token i wanna transfer to another account

Oct 28, 2021, 5:49 PM
I wanna transfer all bep20 tokens from one account to another
Can i do it?
Oct 28, 2021, 5:53 PM
you need to list each contract
and send tokens one by one
Oct 28, 2021, 5:54 PM
each contract of every token?
Oct 28, 2021, 5:55 PM
Huh?
Oct 28, 2021, 5:58 PM
Okey, i already understand that i need different contracts
https://pancake.kiemtienonline360.com/#/swap
pancake in testnet
Oct 28, 2021, 6:02 PM
??
??
Oct 28, 2021, 6:02 PM
pancake in test bcs network
Oct 28, 2021, 6:03 PM
https://pancake.kiemtienonline360.com/#/swap this one ??
Oct 28, 2021, 6:03 PM
yes
Oct 28, 2021, 6:03 PM
https://kiemtienonline360.com/ ??
Oct 28, 2021, 6:04 PM
no
I dont know, what is this
I just use this site for tests
not this
Oct 28, 2021, 6:05 PM
Ok
what is the Router/Adapter id should I use ?
same as pancake ?
Oct 28, 2021, 6:07 PM
Hey, its not rpc network it exists in bcs testnet
Oct 28, 2021, 6:07 PM
https://bsc.kiemtienonline360.com/
Oct 28, 2021, 6:10 PM
Nobody likes tenderly?
Oct 28, 2021, 6:10 PM
https://testnet.bscscan.com/address/0x9ac64cc6e4415144c455bd8e4837fea55603e5c3
Oct 28, 2021, 6:11 PM
How I can transfer bep20 token in my contract. I need adress of contract of this token?
Oct 28, 2021, 6:49 PM
Didn’t you already figure this out?
Oct 28, 2021, 6:52 PM
need interface such as IERC20 or IBEP20

if token address can change,. recommend using SafeTransfer instead*

IERC20(tokenAddr).transfer(someDestination, amount);
Oct 28, 2021, 7:04 PM

© 2024 Draquery.com All rights reserved.