mirror of
https://github.com/grassrootseconomics/erc20-pool.git
synced 2026-03-19 05:00:28 +01:00
Add quoter set method in contract
This commit is contained in:
@@ -28,6 +28,7 @@ contract SwapPool {
|
||||
uint256 public sealState;
|
||||
uint8 constant FEE_STATE = 1;
|
||||
uint8 constant FEEADDRESS_STATE = 2;
|
||||
uint8 constant QUOTER_STATE = 2;
|
||||
uint256 constant public maxSealState = 3;
|
||||
|
||||
// Implements Seal
|
||||
@@ -77,6 +78,13 @@ contract SwapPool {
|
||||
feePpm = _fee;
|
||||
}
|
||||
|
||||
// Change address for the quoter contract
|
||||
function setQuoter(address _quoter) public {
|
||||
require(!isSealed(QUOTER_STATE), "ERR_SEAL");
|
||||
require(msg.sender == owner, "ERR_AXX");
|
||||
quoter = _quoter;
|
||||
}
|
||||
|
||||
// Implements EIP173
|
||||
function transferOwnership(address _newOwner) public returns (bool) {
|
||||
address oldOwner;
|
||||
|
||||
Reference in New Issue
Block a user