make owner to mint amount directly
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
5541eda138
commit
941aba02fa
@ -51,7 +51,7 @@ contract Reserve is ERC20Permit {
|
|||||||
function mint(address account) external payable {
|
function mint(address account) external payable {
|
||||||
uint256 donation = msg.value * donationRate / 1e5;
|
uint256 donation = msg.value * donationRate / 1e5;
|
||||||
accumulatedDonation += donation;
|
accumulatedDonation += donation;
|
||||||
_innerMint(account, msg.value);
|
_innerMint(account, msg.value * conversionRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
function burn(uint256 amount) external payable {
|
function burn(uint256 amount) external payable {
|
||||||
@ -66,7 +66,7 @@ contract Reserve is ERC20Permit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _innerMint(address who, uint256 amount) internal {
|
function _innerMint(address who, uint256 amount) internal {
|
||||||
_mint(who, amount * conversionRate);
|
_mint(who, amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _innerBurn(address who, uint256 amount) internal {
|
function _innerBurn(address who, uint256 amount) internal {
|
||||||
|
Loading…
Reference in New Issue
Block a user