@@ -16,7 +16,7 @@ contract Bounty is PullPayment, Destructible {
event TargetCreated(address createdAddress);
/**
* @dev Function that allows the contract to recieve funds, if it hasn't been claimed.
* @dev Fallback function allowing the contract to recieve funds, if they haven't already been claimed.
*/
function() payable {
if (claimed) {
...
...
@@ -25,7 +25,8 @@ contract Bounty is PullPayment, Destructible {
}
/**
* @dev Create and deploy the target contract(extension of Target contract), and sets the msg.sender as a researcher
* @dev Create and deploy the target contract (extension of Target contract), and sets the
* msg.sender as a researcher
* @return A target contract
*/
function createTarget() returns(Target) {
...
...
@@ -68,8 +69,10 @@ contract Bounty is PullPayment, Destructible {
contract Target {
/**
* @dev Funtion tha should check everything your contract assumes to be true all the time. If this function returns false, it means your contract was broken in some way and is in an inconsistent state. This is what security researchers will try to acomplish when trying to get the bounty.
* @return A boolean that indicates if the contract is broken or not.
* @dev Checks all values a contract assumes to be true all the time. If this function returns
* false, the contract is broken in some way and is in an inconsistent state.
* In order to win the bounty, security researchers will try to cause this broken state.
* @return True if all invariant values are correct, false otherwise.
* @dev Base contract that enables methods to be protected by placing a linear limit (specifiable) on a particular resource per calendar day. Is multiowned to allow the limit to be altered
* @dev Base contract that enables methods to be protected by placing a linear limit (specifiable)
* on a particular resource per calendar day. Is multiowned to allow the limit to be altered.
*/
contract DayLimit {
...
...
@@ -11,7 +12,7 @@ contract DayLimit {
uint public lastDay;
/**
* @dev Constructor that sets the passed value as a dailyLimit
* @dev Constructor that sets the passed value as a dailyLimit.
* @param _limit Uint to represent the daily limit.
*/
function DayLimit(uint _limit) {
...
...
@@ -20,7 +21,7 @@ contract DayLimit {
}
/**
* @dev sets the daily limit. doesn't alter the amount already spent today
* @dev sets the daily limit. Does not alter the amount already spent today.
* @param _newLimit Uint to represent the new limit.
*/
function _setDailyLimit(uint _newLimit) internal {
...
...
@@ -35,8 +36,8 @@ contract DayLimit {
}
/**
* @dev Checks to see if there is enough resource to spend today. If true, the resource is expended.
* @param _value Uint representing the amout of resurce to spend.
* @dev Checks to see if there is enough resource to spend today. If true, the resource may be expended.
* @param _value Uint representing the amount of resource to spend.
* @return A boolean that is True if the resource was spended and false otherwise.
*/
function underLimit(uint _value) internal returns (bool) {
...
...
@@ -55,8 +56,8 @@ contract DayLimit {
}
/**
* @dev Private function to determine today index
* @return Uint of todays index.
* @dev Private function to determine today's index
* @return Uint of today's index.
*/
function today() private constant returns (uint) {