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