blockparty icon indicating copy to clipboard operation
blockparty copied to clipboard

Handle undividable leftover deposit

Open makoto opened this issue 8 years ago • 0 comments

When 4 deposits are split by 3 people, the division becomes 1.3333.... which leaves small portion into the contract and make contract balance inconsistent with the actual balance.

The solution would be

  • Rather than resetting balance = 0 at payout, do balance = balance - payout
  • Return the remaining to contract owner when the event ends.

makoto avatar Aug 20 '16 09:08 makoto