$2,656.20 5.61%
ETH · 209w

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
Recent news
No posts found