Skip to content

Events ​

Git Source

Inherits:Structs

Events ​

LogTurnOnSmartCol ​

Emitted when smart collateral is turned on

solidity
event LogTurnOnSmartCol(uint256 token0Amt);

Parameters

NameTypeDescription
token0Amtuint256The amount of token0 used for smart collateral

LogTurnOnSmartDebt ​

Emitted when smart debt is turned on

solidity
event LogTurnOnSmartDebt(uint256 token0Amt);

Parameters

NameTypeDescription
token0Amtuint256The amount of token0 used for smart debt

LogUpdateFeeAndRevenueCut ​

Emitted when fee and revenue cut are updated

solidity
event LogUpdateFeeAndRevenueCut(uint256 fee, uint256 revenueCut);

Parameters

NameTypeDescription
feeuint256The new fee value
revenueCutuint256The new revenue cut value

LogUpdateRangePercents ​

Emitted when range percents are updated

solidity
event LogUpdateRangePercents(uint256 upperPercent, uint256 lowerPercent, uint256 shiftTime);

Parameters

NameTypeDescription
upperPercentuint256The new upper percent value
lowerPercentuint256The new lower percent value
shiftTimeuint256The new shift time value

LogUpdateThresholdPercent ​

Emitted when threshold percent is updated

solidity
event LogUpdateThresholdPercent(
    uint256 upperThresholdPercent, uint256 lowerThresholdPercent, uint256 thresholdShiftTime, uint256 shiftTime
);

Parameters

NameTypeDescription
upperThresholdPercentuint256The new upper threshold percent value
lowerThresholdPercentuint256The new lower threshold percent value
thresholdShiftTimeuint256The new threshold shift time value
shiftTimeuint256The new shift time value

LogUpdateCenterPriceAddress ​

Emitted when center price address is updated

solidity
event LogUpdateCenterPriceAddress(uint256 centerPriceAddress, uint256 percent, uint256 time);

Parameters

NameTypeDescription
centerPriceAddressuint256The new center price address nonce
percentuint256The new percent value
timeuint256The new time value

LogUpdateHookAddress ​

Emitted when hook address is updated

solidity
event LogUpdateHookAddress(uint256 hookAddress);

Parameters

NameTypeDescription
hookAddressuint256The new hook address nonce

LogUpdateCenterPriceLimits ​

Emitted when center price limits are updated

solidity
event LogUpdateCenterPriceLimits(uint256 maxCenterPrice, uint256 minCenterPrice);

Parameters

NameTypeDescription
maxCenterPriceuint256The new maximum center price
minCenterPriceuint256The new minimum center price

LogUpdateUtilizationLimit ​

Emitted when utilization limit is updated

solidity
event LogUpdateUtilizationLimit(uint256 token0UtilizationLimit, uint256 token1UtilizationLimit);

Parameters

NameTypeDescription
token0UtilizationLimituint256The new utilization limit for token0
token1UtilizationLimituint256The new utilization limit for token1

LogUpdateUserSupplyConfigs ​

Emitted when user supply configs are updated

solidity
event LogUpdateUserSupplyConfigs(UserSupplyConfig[] userSupplyConfigs);

Parameters

NameTypeDescription
userSupplyConfigsUserSupplyConfig[]The array of updated user supply configurations

LogUpdateUserBorrowConfigs ​

Emitted when user borrow configs are updated

solidity
event LogUpdateUserBorrowConfigs(UserBorrowConfig[] userBorrowConfigs);

Parameters

NameTypeDescription
userBorrowConfigsUserBorrowConfig[]The array of updated user borrow configurations

LogPauseUser ​

Emitted when a user is paused

solidity
event LogPauseUser(address user, bool pauseSupply, bool pauseBorrow);

Parameters

NameTypeDescription
useraddressThe address of the paused user
pauseSupplyboolWhether supply operations are paused
pauseBorrowboolWhether borrow operations are paused

LogUnpauseUser ​

Emitted when a user is unpaused

solidity
event LogUnpauseUser(address user, bool unpauseSupply, bool unpauseBorrow);

Parameters

NameTypeDescription
useraddressThe address of the unpaused user
unpauseSupplyboolWhether supply operations are unpaused
unpauseBorrowboolWhether borrow operations are unpaused

LogInitializePoolConfig ​

Emitted when the pool configuration is initialized

solidity
event LogInitializePoolConfig(
    bool smartCol,
    bool smartDebt,
    uint256 token0ColAmt,
    uint256 token0DebtAmt,
    uint256 fee,
    uint256 revenueCut,
    uint256 centerPriceAddress,
    uint256 hookAddress
);

Parameters

NameTypeDescription
smartColboolWhether smart collateral is enabled
smartDebtboolWhether smart debt is enabled
token0ColAmtuint256The amount of token0 collateral
token0DebtAmtuint256The amount of token0 debt
feeuint256The fee percentage (in 4 decimals, 10000 = 1%)
revenueCutuint256The revenue cut percentage (in 4 decimals, 100000 = 10%)
centerPriceAddressuint256The nonce for the center price contract address
hookAddressuint256The nonce for the hook contract address

LogInitializePriceParams ​

Emitted when the price parameters are initialized

solidity
event LogInitializePriceParams(
    uint256 upperPercent,
    uint256 lowerPercent,
    uint256 upperShiftThreshold,
    uint256 lowerShiftThreshold,
    uint256 thresholdShiftTime,
    uint256 maxCenterPrice,
    uint256 minCenterPrice
);

Parameters

NameTypeDescription
upperPercentuint256The upper range percent (in 4 decimals, 10000 = 1%)
lowerPercentuint256The lower range percent (in 4 decimals, 10000 = 1%)
upperShiftThresholduint256The upper shift threshold (in 4 decimals, 10000 = 1%)
lowerShiftThresholduint256The lower shift threshold (in 4 decimals, 10000 = 1%)
thresholdShiftTimeuint256The time for threshold shift (in seconds)
maxCenterPriceuint256The maximum center price
minCenterPriceuint256The minimum center price

LogPauseSwapAndArbitrage ​

Emitted when swap and arbitrage are paused

solidity
event LogPauseSwapAndArbitrage();

LogUnpauseSwapAndArbitrage ​

Emitted when swap and arbitrage are unpaused

solidity
event LogUnpauseSwapAndArbitrage();

LogUpdateUserWithdrawalLimit ​

emitted when user withdrawal limit is updated

solidity
event LogUpdateUserWithdrawalLimit(address user, uint256 newLimit);

LogRescueFunds ​

Emitted when funds are rescued

solidity
event LogRescueFunds(address token);

Parameters

NameTypeDescription
tokenaddressThe address of the token