remove unnecessary functions

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-06-27 20:32:41 +03:00
parent 34fdb21d82
commit 3f0d1fb02e
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -51,11 +51,11 @@ contract Reserve is ERC20Permit {
function mint(address account) external payable {
uint256 donation = msg.value * donationRate / 1e5;
accumulatedDonation += donation;
_innerMint(account, msg.value * conversionRate);
_mint(account, msg.value * conversionRate);
}
function burn(uint256 amount) external payable {
_innerBurn(msg.sender, amount);
_burn(msg.sender, amount);
uint256 valueDiff = address(this).balance - accumulatedDonation;
uint256 valueBack = amount * valueDiff / (amount + totalSupply());
@ -67,12 +67,4 @@ contract Reserve is ERC20Permit {
uint256 valueDiff = address(this).balance - accumulatedDonation;
return amount * valueDiff / totalSupply();
}
function _innerMint(address who, uint256 amount) internal {
_mint(who, amount);
}
function _innerBurn(address who, uint256 amount) internal {
_burn(who, amount);
}
}