mirror of
https://github.com/grassrootseconomics/erc20-pool.git
synced 2024-11-21 03:46:45 +01:00
fix: fee overwithdraw, bump compiler settings
* use istanbul hardfork
This commit is contained in:
parent
47a1ea0ffd
commit
5189aec53a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
SOLC = /usr/local/bin/solc
|
||||
EVM_VERSION = byzantium
|
||||
SOLC = solc
|
||||
EVM_VERSION = istanbul
|
||||
|
||||
all:
|
||||
$(SOLC) --bin SwapPool.sol --evm-version $(EVM_VERSION)| awk 'NR>3' > SwapPool.bin
|
||||
|
@ -251,8 +251,10 @@ contract SwapPool {
|
||||
bool r;
|
||||
bytes memory v;
|
||||
|
||||
// This is a GE specific feature. However, it can be removed to allow anyone to push fees into a common feeAddress (profit-sharing)
|
||||
require(msg.sender == owner, "ERR_OWNER");
|
||||
require(feeAddress != address(0), "ERR_AXX");
|
||||
require(_value <= fees[_outToken], "ERR_BALANCE");
|
||||
|
||||
(r, v) = _outToken.call(abi.encodeWithSignature('transfer(address,uint256)', feeAddress, _value));
|
||||
require(r, "ERR_TOKEN");
|
||||
|
Loading…
Reference in New Issue
Block a user