Skip to content

Commit

Permalink
Changed Reserve capture && refactored comptroller
Browse files Browse the repository at this point in the history
- Comptroller now supplies a reserve recipient
- Comptroller now supplies a reserve token
- Volume drips are limited by balance held by comptroller
  • Loading branch information
asselstine committed Sep 27, 2020
1 parent e649aee commit 56f640a
Show file tree
Hide file tree
Showing 22 changed files with 831 additions and 613 deletions.
6 changes: 2 additions & 4 deletions contracts/builders/PrizePoolBuilder.sol
Expand Up @@ -16,15 +16,13 @@ contract PrizePoolBuilder {
) internal {
address ticket = address(singleRandomWinner.ticket());

prizePool.addControlledToken(ticket);
prizePool.addControlledToken(address(singleRandomWinner.sponsorship()));
prizePool.addControlledToken(ticket);

prizePool.setCreditPlanOf(
ticket,
ticketCreditRateMantissa.toUint128(),
ticketCreditLimitMantissa.toUint128()
);

prizePool.setReserveFeeControlledToken(address(singleRandomWinner.sponsorship()));
}
}
}

0 comments on commit 56f640a

Please sign in to comment.