Skip to content

Commit

Permalink
The CompoundPrizePoolBuilder sets the reserve fee token (#134)
Browse files Browse the repository at this point in the history
- The reserve fee controlled token defaults to the sponsorship
  • Loading branch information
asselstine committed Sep 9, 2020
1 parent 653ad1f commit dbdbbe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/builders/CompoundPrizePoolBuilder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ contract CompoundPrizePoolBuilder {

prizePool.setCreditRateOf(tokens[0], config.creditRateMantissa.toUint128(), config.exitFeeMantissa.toUint128());

prizePool.setReserveFeeControlledToken(tokens[1]);

prizePool.transferOwnership(msg.sender);

prizeStrategy.initialize(
Expand Down
1 change: 1 addition & 0 deletions test/CompoundPrizePoolBuilder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ describe('CompoundPrizePoolBuilder', () => {
expect(await sponsorship.name()).to.equal(config.sponsorshipName)
expect(await sponsorship.symbol()).to.equal(config.sponsorshipSymbol)

expect(await prizePool.reserveFeeControlledToken()).to.equal(sponsorship.address)
expect(await prizePool.maxExitFeeMantissa()).to.equal(config.maxExitFeeMantissa)
expect(await prizePool.maxTimelockDuration()).to.equal(config.maxTimelockDuration)
expect(await prizePool.creditRateOf(ticket.address)).to.deep.equal([config.exitFeeMantissa, config.creditRateMantissa])
Expand Down

0 comments on commit dbdbbe6

Please sign in to comment.