Skip to content

Commit

Permalink
refactor: rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Jan 21, 2025
1 parent 3982dde commit 43ff218
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
17 changes: 10 additions & 7 deletions airdrops/MerkleCreator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,23 @@ contract MerkleCreator {
// The total number of addresses you want to airdrop your tokens to.
uint256 recipientCount = 10_000;

// Set the schedule of the stream that will be created from this campaign.
MerkleLL.Schedule memory schedule = MerkleLL.Schedule({
startTime: 0, // i.e. block.timestamp
startPercentage: ud2x18(0.01e18),
cliffDuration: 30 days,
cliffPercentage: ud2x18(0.01e18),
totalDuration: 90 days
});

// Deploy the MerkleLL campaign contract. The deployed contract will be completely owned by the campaign admin.
// Recipients will interact with the deployed contract to claim their airdrop.
merkleLL = FACTORY.createMerkleLL({
baseParams: baseParams,
lockup: LOCKUP,
cancelable: false,
transferable: true,
schedule: MerkleLL.Schedule({
startTime: 0, // i.e. block.timestamp
startPercentage: ud2x18(0.01e18),
cliffDuration: 30 days,
cliffPercentage: ud2x18(0.01e18),
totalDuration: 90 days
}),
schedule: schedule,
aggregateAmount: aggregateAmount,
recipientCount: recipientCount
});
Expand Down
10 changes: 5 additions & 5 deletions lockup/LockupLinearCurvesCreator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ contract LockupLinearCurvesCreator {
}

/// @dev For this function to work, the sender must have approved this dummy contract to spend DAI.
function createStream_Cliff() public returns (uint256 streamId) {
function createStream_CliffUnlock() public returns (uint256 streamId) {
// Declare the total amount as 100 DAI
uint128 totalAmount = 100e18;

Expand Down Expand Up @@ -83,7 +83,7 @@ contract LockupLinearCurvesCreator {
}

/// @dev For this function to work, the sender must have approved this dummy contract to spend DAI.
function createStream_UnlockLinear() public returns (uint256 streamId) {
function createStream_InitialUnlock() public returns (uint256 streamId) {
// Declare the total amount as 100 DAI
uint128 totalAmount = 100e18;

Expand Down Expand Up @@ -117,7 +117,7 @@ contract LockupLinearCurvesCreator {
}

/// @dev For this function to work, the sender must have approved this dummy contract to spend DAI.
function createStream_UnlockCliff() public returns (uint256 streamId) {
function createStream_InitialCliffUnlock() public returns (uint256 streamId) {
// Declare the total amount as 100 DAI
uint128 totalAmount = 100e18;

Expand Down Expand Up @@ -151,7 +151,7 @@ contract LockupLinearCurvesCreator {
}

/// @dev For this function to work, the sender must have approved this dummy contract to spend DAI.
function createStream_ConstantLinear() public returns (uint256 streamId) {
function createStream_ConstantCliff() public returns (uint256 streamId) {
// Declare the total amount as 100 DAI
uint128 totalAmount = 100e18;

Expand Down Expand Up @@ -184,7 +184,7 @@ contract LockupLinearCurvesCreator {
}

/// @dev For this function to work, the sender must have approved this dummy contract to spend DAI.
function createStream_UnlockConstant() public returns (uint256 streamId) {
function createStream_InitialUnlockConstantCliff() public returns (uint256 streamId) {
// Declare the total amount as 100 DAI
uint128 totalAmount = 100e18;

Expand Down

0 comments on commit 43ff218

Please sign in to comment.