Skip to content

Commit db3cc6a

Browse files
authored
Audit Feedback: Update Farm Vest (#41)
* fix: update chainlog keys in tests; add chainlog assertions after init * chore: update audit reports
1 parent 4f238f9 commit db3cc6a

6 files changed

Lines changed: 7 additions & 4 deletions
-615 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
426 KB
Binary file not shown.

script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.t.integration.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ contract TreasuryFundedFarmingInitIntegrationTest is DssTest {
8484
stakingToken: usds,
8585
rewardsToken: sky,
8686
rewards: address(0),
87-
rewardsKey: "REWARDS_LSSKY_SKY",
87+
rewardsKey: "REWARDS_USDS_SKY",
8888
dist: address(0),
89-
distKey: "REWARDS_DIST_LSSKY_SKY",
89+
distKey: "REWARDS_DIST_USDS_SKY",
9090
distJob: distJob,
9191
distJobInterval: 7 days - 1 hours,
9292
vest: vest,

script/dependencies/treasury-funded-farms/TreasuryFundedFarmingInit.t.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ contract TreasuryFundedFarmingInitTest is DssTest {
8484
stakingToken: usds,
8585
rewardsToken: sky,
8686
rewards: address(0),
87-
rewardsKey: "REWARDS_LSSKY_SKY",
87+
rewardsKey: "REWARDS_USDS_SKY",
8888
dist: address(0),
89-
distKey: "REWARDS_DIST_LSSKY_SKY",
89+
distKey: "REWARDS_DIST_USDS_SKY",
9090
distJob: distJob,
9191
distJobInterval: 7 days - 1 hours,
9292
vest: vest,
@@ -338,6 +338,9 @@ contract TreasuryFundedFarmingInitTest is DssTest {
338338

339339
assertTrue(VestedRewardsDistributionJobLike(p.distJob).has(p.dist), "after: job should have dist");
340340

341+
assertEq(chainlog.getAddress(p.rewardsKey), p.rewards, "after: should set rewards chainlog entry");
342+
assertEq(chainlog.getAddress(p.distKey), p.dist, "after: should set dist chainlog entry");
343+
341344
assertEq(
342345
DssVestTransferrableLike(p.vest).ids(),
343346
b.vestCount + 1,

0 commit comments

Comments
 (0)