mirror of
https://github.com/grassrootseconomics/erc20-pool.git
synced 2026-05-14 11:58:45 +02:00
feat: admin only withdrawals
This commit is contained in:
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));
|
||||
|
||||
Reference in New Issue
Block a user