remove unnecessary functions
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									34fdb21d82
								
							
						
					
					
						commit
						3f0d1fb02e
					
				| @ -51,11 +51,11 @@ 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 * conversionRate); |         _mint(account, msg.value * conversionRate); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     function burn(uint256 amount) external payable { |     function burn(uint256 amount) external payable { | ||||||
|         _innerBurn(msg.sender, amount); |         _burn(msg.sender, amount); | ||||||
|         uint256 valueDiff = address(this).balance - accumulatedDonation; |         uint256 valueDiff = address(this).balance - accumulatedDonation; | ||||||
|         uint256 valueBack = amount * valueDiff / (amount + totalSupply()); |         uint256 valueBack = amount * valueDiff / (amount + totalSupply()); | ||||||
| 
 | 
 | ||||||
| @ -67,12 +67,4 @@ contract Reserve is ERC20Permit { | |||||||
|         uint256 valueDiff = address(this).balance - accumulatedDonation; |         uint256 valueDiff = address(this).balance - accumulatedDonation; | ||||||
|         return amount * valueDiff / totalSupply(); |         return amount * valueDiff / totalSupply(); | ||||||
|     } |     } | ||||||
| 
 |  | ||||||
|     function _innerMint(address who, uint256 amount) internal { |  | ||||||
|         _mint(who, amount); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     function _innerBurn(address who, uint256 amount) internal { |  | ||||||
|         _burn(who, amount); |  | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user