Skip to content

Commit

Permalink
Bump twab-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan DesRosier committed Jul 5, 2023
1 parent 4cbd0db commit a56ac64
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
branch = release-v4.9
[submodule "lib/v5-twab-controller"]
path = lib/v5-twab-controller
url = https://github.com/pooltogether/v5-twab-controller
[submodule "lib/prb-math"]
branch = v3
path = lib/prb-math
Expand All @@ -19,3 +16,6 @@
[submodule "lib/owner-manager-contracts"]
path = lib/owner-manager-contracts
url = https://github.com/pooltogether/owner-manager-contracts
[submodule "lib/pt-v5-twab-controller"]
path = lib/pt-v5-twab-controller
url = https://github.com/GenerationSoftware/pt-v5-twab-controller
1 change: 1 addition & 0 deletions lib/pt-v5-twab-controller
Submodule pt-v5-twab-controller added at 1cdf78
1 change: 0 additions & 1 deletion lib/v5-twab-controller
Submodule v5-twab-controller deleted from 1cf155
2 changes: 1 addition & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ prb-math/=lib/prb-math/src/
openzeppelin=lib/openzeppelin-contracts/contracts/
src/=src/
test/=test/
v5-twab-controller/=lib/v5-twab-controller/src/
v5-twab-controller/=lib/pt-v5-twab-controller/src/
ring-buffer-lib/=lib/ring-buffer-lib/src/
owner-manager-contracts/=lib/owner-manager-contracts/contracts/
4 changes: 2 additions & 2 deletions test/PrizePool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ contract PrizePoolTest is Test {
vm.warp(startTimestamp);

prizeToken = new ERC20Mintable("PoolTogether POOL token", "POOL");
twabController = new TwabController();
drawPeriodSeconds = 1 days;
twabController = new TwabController(drawPeriodSeconds, uint32(block.timestamp));

lastClosedDrawStartedAt = uint64(block.timestamp + 1 days); // set draw start 1 day into future
drawPeriodSeconds = 1 days;
initialNumberOfTiers = 3;

address drawManager = address(this);
Expand Down
2 changes: 1 addition & 1 deletion test/invariants/helpers/PrizePoolFuzzHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract PrizePoolFuzzHarness is CommonBase {
SD1x18 smoothing = SD1x18.wrap(0.9e18);

token = new ERC20Mintable("name", "SYMBOL");
TwabController twabController = new TwabController();
TwabController twabController = new TwabController(drawPeriodSeconds, uint32(block.timestamp));
// arbitrary mint
twabController.mint(address(this), 100e18);

Expand Down

0 comments on commit a56ac64

Please sign in to comment.