Events ​
Inherits:Structs
Events ​
LogTurnOnSmartCol ​
Emitted when smart collateral is turned on
event LogTurnOnSmartCol(uint256 token0Amt);
Parameters
Name | Type | Description |
---|---|---|
token0Amt | uint256 | The amount of token0 used for smart collateral |
LogTurnOnSmartDebt ​
Emitted when smart debt is turned on
event LogTurnOnSmartDebt(uint256 token0Amt);
Parameters
Name | Type | Description |
---|---|---|
token0Amt | uint256 | The amount of token0 used for smart debt |
LogUpdateFeeAndRevenueCut ​
Emitted when fee and revenue cut are updated
event LogUpdateFeeAndRevenueCut(uint256 fee, uint256 revenueCut);
Parameters
Name | Type | Description |
---|---|---|
fee | uint256 | The new fee value |
revenueCut | uint256 | The new revenue cut value |
LogUpdateRangePercents ​
Emitted when range percents are updated
event LogUpdateRangePercents(uint256 upperPercent, uint256 lowerPercent, uint256 shiftTime);
Parameters
Name | Type | Description |
---|---|---|
upperPercent | uint256 | The new upper percent value |
lowerPercent | uint256 | The new lower percent value |
shiftTime | uint256 | The new shift time value |
LogUpdateThresholdPercent ​
Emitted when threshold percent is updated
event LogUpdateThresholdPercent(
uint256 upperThresholdPercent, uint256 lowerThresholdPercent, uint256 thresholdShiftTime, uint256 shiftTime
);
Parameters
Name | Type | Description |
---|---|---|
upperThresholdPercent | uint256 | The new upper threshold percent value |
lowerThresholdPercent | uint256 | The new lower threshold percent value |
thresholdShiftTime | uint256 | The new threshold shift time value |
shiftTime | uint256 | The new shift time value |
LogUpdateCenterPriceAddress ​
Emitted when center price address is updated
event LogUpdateCenterPriceAddress(uint256 centerPriceAddress, uint256 percent, uint256 time);
Parameters
Name | Type | Description |
---|---|---|
centerPriceAddress | uint256 | The new center price address nonce |
percent | uint256 | The new percent value |
time | uint256 | The new time value |
LogUpdateHookAddress ​
Emitted when hook address is updated
event LogUpdateHookAddress(uint256 hookAddress);
Parameters
Name | Type | Description |
---|---|---|
hookAddress | uint256 | The new hook address nonce |
LogUpdateCenterPriceLimits ​
Emitted when center price limits are updated
event LogUpdateCenterPriceLimits(uint256 maxCenterPrice, uint256 minCenterPrice);
Parameters
Name | Type | Description |
---|---|---|
maxCenterPrice | uint256 | The new maximum center price |
minCenterPrice | uint256 | The new minimum center price |
LogUpdateUtilizationLimit ​
Emitted when utilization limit is updated
event LogUpdateUtilizationLimit(uint256 token0UtilizationLimit, uint256 token1UtilizationLimit);
Parameters
Name | Type | Description |
---|---|---|
token0UtilizationLimit | uint256 | The new utilization limit for token0 |
token1UtilizationLimit | uint256 | The new utilization limit for token1 |
LogUpdateUserSupplyConfigs ​
Emitted when user supply configs are updated
event LogUpdateUserSupplyConfigs(UserSupplyConfig[] userSupplyConfigs);
Parameters
Name | Type | Description |
---|---|---|
userSupplyConfigs | UserSupplyConfig[] | The array of updated user supply configurations |
LogUpdateUserBorrowConfigs ​
Emitted when user borrow configs are updated
event LogUpdateUserBorrowConfigs(UserBorrowConfig[] userBorrowConfigs);
Parameters
Name | Type | Description |
---|---|---|
userBorrowConfigs | UserBorrowConfig[] | The array of updated user borrow configurations |
LogPauseUser ​
Emitted when a user is paused
event LogPauseUser(address user, bool pauseSupply, bool pauseBorrow);
Parameters
Name | Type | Description |
---|---|---|
user | address | The address of the paused user |
pauseSupply | bool | Whether supply operations are paused |
pauseBorrow | bool | Whether borrow operations are paused |
LogUnpauseUser ​
Emitted when a user is unpaused
event LogUnpauseUser(address user, bool unpauseSupply, bool unpauseBorrow);
Parameters
Name | Type | Description |
---|---|---|
user | address | The address of the unpaused user |
unpauseSupply | bool | Whether supply operations are unpaused |
unpauseBorrow | bool | Whether borrow operations are unpaused |
LogInitializePoolConfig ​
Emitted when the pool configuration is initialized
event LogInitializePoolConfig(
bool smartCol,
bool smartDebt,
uint256 token0ColAmt,
uint256 token0DebtAmt,
uint256 fee,
uint256 revenueCut,
uint256 centerPriceAddress,
uint256 hookAddress
);
Parameters
Name | Type | Description |
---|---|---|
smartCol | bool | Whether smart collateral is enabled |
smartDebt | bool | Whether smart debt is enabled |
token0ColAmt | uint256 | The amount of token0 collateral |
token0DebtAmt | uint256 | The amount of token0 debt |
fee | uint256 | The fee percentage (in 4 decimals, 10000 = 1%) |
revenueCut | uint256 | The revenue cut percentage (in 4 decimals, 100000 = 10%) |
centerPriceAddress | uint256 | The nonce for the center price contract address |
hookAddress | uint256 | The nonce for the hook contract address |
LogInitializePriceParams ​
Emitted when the price parameters are initialized
event LogInitializePriceParams(
uint256 upperPercent,
uint256 lowerPercent,
uint256 upperShiftThreshold,
uint256 lowerShiftThreshold,
uint256 thresholdShiftTime,
uint256 maxCenterPrice,
uint256 minCenterPrice
);
Parameters
Name | Type | Description |
---|---|---|
upperPercent | uint256 | The upper range percent (in 4 decimals, 10000 = 1%) |
lowerPercent | uint256 | The lower range percent (in 4 decimals, 10000 = 1%) |
upperShiftThreshold | uint256 | The upper shift threshold (in 4 decimals, 10000 = 1%) |
lowerShiftThreshold | uint256 | The lower shift threshold (in 4 decimals, 10000 = 1%) |
thresholdShiftTime | uint256 | The time for threshold shift (in seconds) |
maxCenterPrice | uint256 | The maximum center price |
minCenterPrice | uint256 | The minimum center price |
LogPauseSwapAndArbitrage ​
Emitted when swap and arbitrage are paused
event LogPauseSwapAndArbitrage();
LogUnpauseSwapAndArbitrage ​
Emitted when swap and arbitrage are unpaused
event LogUnpauseSwapAndArbitrage();
LogUpdateUserWithdrawalLimit ​
emitted when user withdrawal limit is updated
event LogUpdateUserWithdrawalLimit(address user, uint256 newLimit);
LogRescueFunds ​
Emitted when funds are rescued
event LogRescueFunds(address token);
Parameters
Name | Type | Description |
---|---|---|
token | address | The address of the token |