Skip to content

Commit

Permalink
(test/migration): update existing test for new migration contract
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminbollen committed Mar 1, 2024
1 parent c696aaf commit 3fbeaff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/migration/Migration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity >=0.8.13;

import {Test} from "forge-std/Test.sol";
import {StdCheats} from "forge-std/StdCheats.sol";
import "../../src/migration/MigrationOld.sol";
import "../../src/migration/Migration.sol";
import "../setup/TimeSetup.sol";
import "./MockHub.sol";

Expand All @@ -18,12 +18,12 @@ contract GraphTest is Test {

MockHubV1 public mockHubV1;

CirclesMigration public migration;
Migration public migration;

function setUp() public {
mockHubV1 = new MockHubV1();

migration = new CirclesMigration(mockHubV1);
migration = new Migration(mockHubV1);

vm.warp(MOMENT_IN_TIME);
}
Expand All @@ -40,7 +40,7 @@ contract GraphTest is Test {
// possibly even on-chain

// for now require accuracy < 1%
uint256 convertedAmount = migration.convertFromV1ToTimeCircles(originalAmountV1);
uint256 convertedAmount = migration.convertFromV1ToDemurrage(originalAmountV1);
uint256 difference = uint256(0);
if (convertedAmount < expectedAmountV2) {
difference = ACCURACY_ONE - (ACCURACY_ONE * convertedAmount) / expectedAmountV2;
Expand Down

0 comments on commit 3fbeaff

Please sign in to comment.