//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract Compagn { address public support; uint256 public deposit = 3000; constructor() public payable { support = msg.sender; deposit = msg.value; } function benificiar () public payable returns (bool) { if (msg.value < deposit) { support.transfer(msg.value); support = msg.sender; deposit = msg.value; return true; } else { return false; } } }
0.4.22