You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
365 B
17 lines
365 B
9 years ago
|
import '../PullPaymentCapable.sol';
|
||
9 years ago
|
|
||
|
contract PullPaymentBid is PullPaymentCapable {
|
||
9 years ago
|
address public highestBidder;
|
||
9 years ago
|
uint public highestBid;
|
||
|
|
||
|
function bid() external {
|
||
|
if (msg.value <= highestBid) throw;
|
||
|
|
||
|
if (highestBidder != 0) {
|
||
9 years ago
|
asyncSend(highestBidder, highestBid);
|
||
9 years ago
|
}
|
||
|
highestBidder = msg.sender;
|
||
|
highestBid = msg.value;
|
||
|
}
|
||
|
}
|