mirror of
https://github.com/grassrootseconomics/erc20-pool.git
synced 2025-07-04 21:22:49 +02:00
feat: add quoter updated event
This commit is contained in:
parent
5189aec53a
commit
5caa4be03e
@ -60,6 +60,8 @@ contract SwapPool {
|
|||||||
uint256 amountOut
|
uint256 amountOut
|
||||||
);
|
);
|
||||||
|
|
||||||
|
event QuoterUpdated(address indexed newQuoter);
|
||||||
|
|
||||||
constructor(string memory _name, string memory _symbol, uint8 _decimals, address _tokenRegistry, address _tokenLimiter) {
|
constructor(string memory _name, string memory _symbol, uint8 _decimals, address _tokenRegistry, address _tokenLimiter) {
|
||||||
name = _name;
|
name = _name;
|
||||||
symbol = _symbol;
|
symbol = _symbol;
|
||||||
@ -105,6 +107,7 @@ contract SwapPool {
|
|||||||
require(!isSealed(QUOTER_STATE), "ERR_SEAL");
|
require(!isSealed(QUOTER_STATE), "ERR_SEAL");
|
||||||
require(msg.sender == owner, "ERR_AXX");
|
require(msg.sender == owner, "ERR_AXX");
|
||||||
quoter = _quoter;
|
quoter = _quoter;
|
||||||
|
emit QuoterUpdated(_quoter);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Implements EIP173
|
// Implements EIP173
|
||||||
|
Loading…
Reference in New Issue
Block a user