Timeline for Unable to understand buy and sell functions
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 4, 2016 at 10:03 | comment | added | eth♦ |
@PrashantPrabhakarSingh It's protocol code that transfers ether, just like how you pay the miner for your transaction. Don't forget that when you invoke buy , you specify value (just like you can specify gas for your transaction) like this example.
|
|
Aug 3, 2016 at 9:24 | comment | added | Prashant Prabhakar Singh |
In buy(..) we subtracted the coin from contract balance and added it to Account's balance. So I can understand how coins are being transferred. But how ether is transferred from account to contract? What piece of code enables ether transfer?
|
|
Aug 1, 2016 at 15:20 | history | edited | dragosb | CC BY-SA 3.0 |
added 20 characters in body
|
Aug 1, 2016 at 14:36 | vote | accept | Prashant Prabhakar Singh | ||
Jul 31, 2016 at 20:48 | history | answered | dragosb | CC BY-SA 3.0 |