Hi everybody so I am buildibg my first Smar contract experiment and up to now it can receive the ETH from addresses and can give me the list of adresses and amount deposited for each, but I try to use the deposit function for ERC20 to deposit also other tokens but still I cannot figure out how... I read a lot of the tutorials but seem unable to do it...anyone has a vlear example of how to deposit an existing ERC token (suppose for example ALGO) in a smart contract? This contract will also receive ETH tokens

Sep 27, 2020, 9:49 AM
Thanks in advance
Sep 27, 2020, 9:49 AM
Need help?
Sep 27, 2020, 9:52 AM
Yep a clear example on how to use it
I just started solidity but have some experience with basic Python prog.
Sep 27, 2020, 9:53 AM
Any one on the mainnet is fine
Sep 27, 2020, 9:53 AM
🤨 do not understand sorry
Sep 27, 2020, 9:54 AM
Except for eth, the contract cannot receive other tokens, except for the tokens issued by this contract.
Sep 27, 2020, 9:57 AM
You mean the smart contract cannot receive both ETH and another ERC token? And I have to create one which receives ETH and another for every other token??
Sep 27, 2020, 9:58 AM
The tokens of other contracts can only be stored in this contract address and can only be viewed in other contracts
Do you understand?
Sep 27, 2020, 9:59 AM
Ok now I start to understand why it did not work... so My App will have to have eth contract and ALGO contract and another contract to maanage the calculations for both
As my app is managing always combination of funds ... like to supply to LP
Sep 27, 2020, 10:00 AM
you development difi?
Sep 27, 2020, 10:01 AM
The test I do is for DeFi yes...well mainly for Uniswap LP
Sep 27, 2020, 10:02 AM
me too
difi and erc20 token delelopment and audit
Sep 27, 2020, 10:03 AM
Yeah but I do it mainly to learn..as I am originally not dev. But could get to make some things ... but just starting and solidity is a little strange for me heheh
Sep 27, 2020, 10:07 AM
great
Sep 27, 2020, 10:10 AM

© 2024 Draquery.com All rights reserved.