rename function to make it more self-describing
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									a8790cc452
								
							
						
					
					
						commit
						15dfd49163
					
				| @ -32,9 +32,9 @@ contract Reserve is ERC20Permit { | ||||
|         conversionRate = rate; | ||||
|     } | ||||
| 
 | ||||
|     function changeReminder(uint256 reminder) external { | ||||
|     function changeDonationRate(uint256 rate) external { | ||||
|         if (msg.sender != _owner) revert OnlyOwner(); | ||||
|         donationRate = reminder; | ||||
|         donationRate = rate; | ||||
|     } | ||||
| 
 | ||||
|     function withdraw(address payable receiver) external { | ||||
|  | ||||
| @ -106,7 +106,7 @@ contract ReserveTest is Test { | ||||
|         assertEq(reserve.accumulatedDonation(), 0); | ||||
| 
 | ||||
|         vm.prank(initializer); | ||||
|         reserve.changeReminder(1e4); // 10% | ||||
|         reserve.changeDonationRate(1e4); // 10% | ||||
| 
 | ||||
|         deal(aliceAddress, sendAmount); | ||||
|         vm.prank(aliceAddress); | ||||
| @ -135,7 +135,7 @@ contract ReserveTest is Test { | ||||
|     function test_withdraw_couldBeDoneByDeployer() public { | ||||
|         assertEq(address(reserve).balance, 0); | ||||
|         vm.prank(initializer); | ||||
|         reserve.changeReminder(1e5); | ||||
|         reserve.changeDonationRate(1e5); | ||||
| 
 | ||||
|         deal(aliceAddress, sendAmount); | ||||
|         vm.prank(aliceAddress); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user