Ethereum
$89.78 0.47%
ETH · 72w

Empty this Ethereum contract on Ropsten written in Bamboo!

Empty this Ethereum contract on Ropsten written in Bamboo!

I have been developing Bamboo, a programming language for Ethereum contracts. It is super-immature. Every time I write a new contract, I find a bug in the compiler. So, please help me find bugs in the Bamboo compiler by emptying this Ethereum contract on the Ropsten test network.

Warning: it’s Ropsten. If you don’t know Ropsten, it is not the Ethereum network you know about. Do not send ETH to the mentioned address. It would be lost.

Warning: anything you send to this account will be probably permanently lost to no avail. Do not send anything you would miss.

When you empty or perform something great on the account, no report is necessary. When I notice, I’ll investigate what happened.

The target Ethereum contract has ERC20 interface, in addition to two extra methods buy(uint256 _amount) and sell(uint256 _amount, uint256 _value).

Calling buy(100) with some Ropsten-Ether might increase your ERC20 balance by 100. Calling sell(100, 20000000) might decrease your ERC20 balance by 100, and might also change your Ropsten-Ether balance; the gas consuption reduces the Ropseten-Ether balance but the contract might send you 20000000 wei. The contract sometimes refuses these kinds of calls on certain discretion (see the source).

The ABI:

[{"type": "constructor", "inputs":[{"name": "totalSupply", "type": "uint256"}], "name": "PreToken", "outputs":[], "payable": true},{"type":"fallback","inputs": [],"outputs": [],"payable": true},{"type":"event","inputs":[{"name":"_from","type":"address","indexed":true},{"name":"_to","type":"address","indexed":true},{"name":"_amount","type":"uint256","indexed":false}],"name":"Transfer"},{"type":"event","inputs":[{"name":"_buyer","type":"address","indexed":true},{"name":"_amount","type":"uint256","indexed":false},{"name":"_value","type":"uint256","indexed":false}],"name":"Buy"},{"type":"event","inputs":[{"name":"_buyer","type":"addre...
Continue on medium.com
Recent news
ETH +0.47% · ccradar.io · 1h

Trust Management of Digital Assets

This post was originally published on this siteBitcoin Press Release: The Membrana Blockchain Platform is intended to bring investors and traders together for concluding mutually beneficial blockchain...
ETH +0.47% · blog.shrimpy.io · 6h

Shrimpy x KuCoin Trading Competition

To celebrate our official partnership with KuCoin, Shrimpy will be running a weekly social trading competition through the beginning of January! Users are encouraged to trade on KuCoin while using...
11
ETH +0.47% · cryptodaily.co.uk · 11h

CME Bitcoin Futures Are Poisoning Crypto

The Chicago Mercantile Exchange (CME) launched Bitcoin futures on 17 December 2017, the same day the price of Bitcoin peaked near $20,000 and then began to crash, a crash that has lasted a year. Today...
ETH +0.47% · micky.com.au · 17h

SAMSUNG CRYPTO WALLET: Fact or Fiction?

The prospect of Samsung releasing a cryptocurrency wallet with its newest phone has led to enormous excitement, but will it actually happen?