Skip to content

Commit

Permalink
Merge pull request #241 from LefterisJP/offer_uint_const
Browse files Browse the repository at this point in the history
Use uint const for split Grace period
  • Loading branch information
CJentzsch committed Jun 11, 2016
2 parents 9a4b3ef + e781c6a commit 6967d70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Offer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ import "./DAO.sol";

contract Offer {

// Period of time after the passing of a proposal during which the offer
// contract can not be signed in order to provide enough time to anyone
// who may want to split off the DAO to do so.
uint constant splitGracePeriod = 8 days;

// The total cost of the Offer for the Client. Exactly this amount is
// transfered from the Client to the Offer contract when the Offer is
// accepted by the Client. Set once by the Offerer.
Expand Down Expand Up @@ -175,7 +180,7 @@ contract Offer {
|| msg.value != totalCost // no under/over payment
|| dateOfSignature != 0 // don't accept twice
|| votingDeadline == 0 // votingDeadline needs to be set
|| now < votingDeadline + 8 days)
|| now < votingDeadline + splitGracePeriod) // give people time to split
throw;

lastWithdrawal = votingDeadline + payoutFreezePeriod;
Expand Down

0 comments on commit 6967d70

Please sign in to comment.