Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Grimal committed Oct 16, 2024
1 parent 263f020 commit b6028f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/MorphoToken.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ contract MorphoTokenTest is BaseTest {
address delegatee1,
address delegatee2,
uint256 initialAmount,
uint256 transferedAmount
uint256 transferredAmount
) public {
address[] memory addresses = new address[](4);
addresses[0] = delegator1;
Expand All @@ -152,7 +152,7 @@ contract MorphoTokenTest is BaseTest {
addresses[3] = delegatee2;
_validateAddresses(addresses);
initialAmount = bound(initialAmount, MIN_TEST_AMOUNT, MAX_TEST_AMOUNT);
transferedAmount = bound(transferedAmount, MIN_TEST_AMOUNT, initialAmount);
transferredAmount = bound(transferredAmount, MIN_TEST_AMOUNT, initialAmount);

deal(address(newMorpho), delegator1, initialAmount);

Expand All @@ -161,10 +161,10 @@ contract MorphoTokenTest is BaseTest {

vm.startPrank(delegator1);
newMorpho.delegate(delegatee1);
newMorpho.transfer(delegator2, transferedAmount);
newMorpho.transfer(delegator2, transferredAmount);
vm.stopPrank();

assertEq(newMorpho.getVotes(delegatee1), initialAmount - transferedAmount);
assertEq(newMorpho.getVotes(delegatee2), transferedAmount);
assertEq(newMorpho.getVotes(delegatee1), initialAmount - transferredAmount);
assertEq(newMorpho.getVotes(delegatee2), transferredAmount);
}
}

0 comments on commit b6028f9

Please sign in to comment.