Updates
Inherits: ModifiersAndChecks
Functions
_storeEventBlockNumber
Stores the block number of an event.
This function is called after an event is emitted to store the block number. Duplicates are not stored even if multiple events are emitted in the same block.
function _storeEventBlockNumber() internal;
updateContractAddress
Generic update function to set the contract address for a given identifier.
Caller must have OWNER_ROLE
.
Stores the block number of the event.
Emits a ContractAddressUpdated
event.
function updateContractAddress(string memory _identifier, address _newContractAddress) external onlyRole(OWNER_ROLE);
Parameters
Name | Type | Description |
---|---|---|
_identifier | string | The identifier for the contract address. |
_newContractAddress | address | The new contract address. |
updateTokenAddress
Generic update function to set the token address for a given identifier.
Caller must have OWNER_ROLE
.
Emits a TokenAddressUpdated
event.
Stores the block number of the event.
function updateTokenAddress(string memory _identifier, address _newTokenAddress) external onlyRole(OWNER_ROLE);
Parameters
Name | Type | Description |
---|---|---|
_identifier | string | The identifier for the token address. |
_newTokenAddress | address | The new token address. |
updateUniswapV3Pool
Update UniSwapV3 pool details.
Caller must have OWNER_ROLE
.
Emits a UniswapV3PoolUpdated
event.
function updateUniswapV3Pool(string memory _identifier, address _newUniswapV3PoolAddress, uint24 _newUniswapV3PoolFee)
external
onlyRole(OWNER_ROLE);
updateSlippageTolerance
Update the Slippage Tolerance.
Caller must have OWNER_ROLE
.
Emits a SlippageToleranceUpdated
event.
function updateSlippageTolerance(uint16 _slippageTolerance) external onlyRole(OWNER_ROLE);
Parameters
Name | Type | Description |
---|---|---|
_slippageTolerance | uint16 | The new Slippage Tolerance. |