You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the design up above, we should add Ethereum-specific functions for buying/selling with ETH. The logic will be almost identical, except the functions should be marked as payable, and instead of sending or receiving an ERC20 token, they will send or receive ETH.
You can use the Solidity code:
someAddress.transfer(amountInWei)
to transfer ETH from the SirenExchange to the msg.sender
See #60 for the design of the contract interface.
In addition to the contract we will need
The text was updated successfully, but these errors were encountered: