Skip to content

Commit

Permalink
✨ fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Dec 2, 2024
1 parent 01730be commit a4ebcdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Conversion.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ contract Conversion is IConversion {
if (elapsed >= LINEAR_VESTING_DURATION) {
vestable = owedSNX[_account] - claimedSNX[_account];
} else {
vestable = (owedSNX[_account] * elapsed) / LINEAR_VESTING_DURATION - claimedSNX[_account];
vestable = (owedSNX[_account] * elapsed) / LINEAR_VESTING_DURATION
- claimedSNX[_account];
}
return vestable;
}
Expand Down
5 changes: 3 additions & 2 deletions test/Conversion.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ contract ConversionTest is Bootstrap {
assertEq(claimedSNXFinal, CONVERTED_SNX_AMOUNT);
}

function testVestExploitVestPartialWaitVestFull () public {
function testVestExploitVestPartialWaitVestFull() public {
basicLock();

vm.warp(VESTING_START_TIME + VESTING_LOCK_DURATION);
Expand All @@ -353,7 +353,8 @@ contract ConversionTest is Bootstrap {
conversion.vest(TEST_USER_1);

vm.warp(
VESTING_START_TIME + VESTING_LOCK_DURATION + LINEAR_VESTING_DURATION + LINEAR_VESTING_DURATION / 2
VESTING_START_TIME + VESTING_LOCK_DURATION + LINEAR_VESTING_DURATION
+ LINEAR_VESTING_DURATION / 2
);

vestableAmount = conversion.vestableAmount(TEST_USER_1);
Expand Down
5 changes: 3 additions & 2 deletions test/ConversionOptimism.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ contract ConversionTestOptimism is Bootstrap {
assertEq(claimedSNXFinal, CONVERTED_SNX_AMOUNT);
}

function testVestExploitVestPartialWaitVestFull () public {
function testVestExploitVestPartialWaitVestFull() public {
basicLock();

vm.warp(VESTING_START_TIME + VESTING_LOCK_DURATION);
Expand All @@ -341,7 +341,8 @@ contract ConversionTestOptimism is Bootstrap {
conversion.vest(TEST_USER_1);

vm.warp(
VESTING_START_TIME + VESTING_LOCK_DURATION + LINEAR_VESTING_DURATION + LINEAR_VESTING_DURATION / 2
VESTING_START_TIME + VESTING_LOCK_DURATION + LINEAR_VESTING_DURATION
+ LINEAR_VESTING_DURATION / 2
);

vestableAmount = conversion.vestableAmount(TEST_USER_1);
Expand Down

0 comments on commit a4ebcdb

Please sign in to comment.