Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DEntwickler/Fairlaunch-Token
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: launchzone/Fairlaunch-Token
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 12, 2022

  1. Add Mintable

    techcomthanh authored Jan 12, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    llucax Leandro Lucarella
    Copy the full SHA
    4a0043e View commit details
  2. Add Mintable

    techcomthanh authored Jan 12, 2022
    Copy the full SHA
    c1786b1 View commit details
Showing with 28 additions and 2 deletions.
  1. +14 −1 contracts/FairlaunchToken.sol
  2. +14 −1 contracts/FairlaunchTokenFull.sol
15 changes: 14 additions & 1 deletion contracts/FairlaunchToken.sol
Original file line number Diff line number Diff line change
@@ -53,6 +53,19 @@ contract FairlaunchToken is ERC20, GasPriceController, DexListing, TransferFee,
}
}
}

/*
Mint
*/

function mint(
uint256 amount_
)
external
onlyOwner
{
_mint(msg.sender, amount_);
}

/*
Settings
@@ -78,4 +91,4 @@ contract FairlaunchToken is ERC20, GasPriceController, DexListing, TransferFee,
{
_setTransferFee(to_, buyFee_, sellFee_, normalFee_);
}
}
}
15 changes: 14 additions & 1 deletion contracts/FairlaunchTokenFull.sol
Original file line number Diff line number Diff line change
@@ -841,7 +841,20 @@ contract FairlaunchToken is ERC20, GasPriceController, DexListing, TransferFee,
}
}
}

/*
Mint
*/

function mint(
uint256 amount_
)
external
onlyOwner
{
_mint(msg.sender, amount_);
}

/*
Settings
*/
@@ -866,4 +879,4 @@ contract FairlaunchToken is ERC20, GasPriceController, DexListing, TransferFee,
{
_setTransferFee(to_, buyFee_, sellFee_, normalFee_);
}
}
}