make owner to mint amount directly

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-06-27 20:18:06 +03:00
parent 5541eda138
commit 941aba02fa
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -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 {