feat: admin only withdrawals

This commit is contained in:
2024-04-09 15:46:31 +08:00
parent 1ddae75269
commit a46dfad2a0
4 changed files with 5 additions and 4 deletions

View File

@@ -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));