mirror of
https://github.com/grassrootseconomics/erc20-pool.git
synced 2024-11-26 21:56:46 +01:00
feat: admin only withdrawals
This commit is contained in:
parent
1ddae75269
commit
a46dfad2a0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -21,7 +21,7 @@ contract SwapPool {
|
||||
|
||||
uint256 public totalSupply;
|
||||
|
||||
mapping ( address => uint256 ) fees;
|
||||
mapping ( address => uint256 ) public fees;
|
||||
|
||||
// Implements Seal
|
||||
uint256 public sealState;
|
||||
@ -211,6 +211,7 @@ contract SwapPool {
|
||||
bool r;
|
||||
bytes memory v;
|
||||
|
||||
require(msg.sender == owner, "ERR_OWNER");
|
||||
require(feeAddress != address(0), "ERR_AXX");
|
||||
|
||||
(r, v) = _outToken.call(abi.encodeWithSignature('transfer(address,uint256)', feeAddress, _value));
|
||||
|
Loading…
Reference in New Issue
Block a user