Skip to content

Commit

Permalink
fix: use 18 decimals format for the pct in LT script
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Jan 16, 2025
1 parent 1ad7325 commit a7645ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/CreateMerkleLT.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity >=0.8.22 <0.9.0;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { UD2x18 } from "@prb/math/src/UD2x18.sol";
import { ud2x18 } from "@prb/math/src/UD2x18.sol";
import { ISablierLockup } from "@sablier/lockup/src/interfaces/ISablierLockup.sol";

import { ISablierMerkleFactory } from "../src/interfaces/ISablierMerkleFactory.sol";
Expand Down Expand Up @@ -38,9 +38,9 @@ contract CreateMerkleLT is BaseScript {
// The tranches with their unlock percentages and durations.
MerkleLT.TrancheWithPercentage[] memory tranchesWithPercentages = new MerkleLT.TrancheWithPercentage[](2);
tranchesWithPercentages[0] =
MerkleLT.TrancheWithPercentage({ unlockPercentage: UD2x18.wrap(50), duration: 3600 });
MerkleLT.TrancheWithPercentage({ unlockPercentage: ud2x18(0.5e18), duration: 3600 });
tranchesWithPercentages[1] =
MerkleLT.TrancheWithPercentage({ unlockPercentage: UD2x18.wrap(50), duration: 7200 });
MerkleLT.TrancheWithPercentage({ unlockPercentage: ud2x18(0.5e18), duration: 7200 });

// Deploy the MerkleLT contract.
// TODO: Update address once deployed.
Expand Down

0 comments on commit a7645ce

Please sign in to comment.