Bounty
contract Bounty
This bounty will pay out to a researcher if they break invariant logic of the contract.
Source: Bounty.sol
Reference
Events
TargetCreated
event TargetCreated(address createdAddress)
- Parameters:
createdAddress
- address
Functions
claim
function claim(Target target) public
Sends the contract funds to the researcher that proved the contract is broken.
- Parameters:
target
- contract
createTarget
function createTarget() public returns (Target)
Create and deploy the target contract (extension of Target contract), and sets the msg.sender as a researcher.
- Returns:
- A target contract
deployContract
abstract function deployContract() internal returns (address)
Internal function to deploy the target contract.
- Returns:
- A target contract address
fallback
function () external payable
Fallback function allowing the contract to receive funds, if they haven't already been claimed.