Skip to content

Events ​

LogTurnOnSmartCol ​

solidity
event LogTurnOnSmartCol(uint256 token0Amt)

Emitted when smart collateral is turned on

Parameters ​

NameTypeDescription
token0Amtuint256The amount of token0 used for smart collateral

LogTurnOnSmartDebt ​

solidity
event LogTurnOnSmartDebt(uint256 token0Amt)

Emitted when smart debt is turned on

Parameters ​

NameTypeDescription
token0Amtuint256The amount of token0 used for smart debt

LogUpdateFeeAndRevenueCut ​

solidity
event LogUpdateFeeAndRevenueCut(uint256 fee, uint256 revenueCut)

Emitted when fee and revenue cut are updated

Parameters ​

NameTypeDescription
feeuint256The new fee value
revenueCutuint256The new revenue cut value

LogUpdateRangePercents ​

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

Emitted when range percents are updated

Parameters ​

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

LogUpdateThresholdPercent ​

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

Emitted when threshold percent is updated

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 ​

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

Emitted when center price address is updated

Parameters ​

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

LogUpdateHookAddress ​

solidity
event LogUpdateHookAddress(uint256 hookAddress)

Emitted when hook address is updated

Parameters ​

NameTypeDescription
hookAddressuint256The new hook address nonce

LogUpdateCenterPriceLimits ​

solidity
event LogUpdateCenterPriceLimits(uint256 maxCenterPrice, uint256 minCenterPrice)

Emitted when center price limits are updated

Parameters ​

NameTypeDescription
maxCenterPriceuint256The new maximum center price
minCenterPriceuint256The new minimum center price

LogUpdateUtilizationLimit ​

solidity
event LogUpdateUtilizationLimit(uint256 token0UtilizationLimit, uint256 token1UtilizationLimit)

Emitted when utilization limit is updated

Parameters ​

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

LogUpdateUserSupplyConfigs ​

solidity
event LogUpdateUserSupplyConfigs(struct Structs.UserSupplyConfig[] userSupplyConfigs)

Emitted when user supply configs are updated

Parameters ​

NameTypeDescription
userSupplyConfigsstruct Structs.UserSupplyConfig[]The array of updated user supply configurations

LogUpdateUserBorrowConfigs ​

solidity
event LogUpdateUserBorrowConfigs(struct Structs.UserBorrowConfig[] userBorrowConfigs)

Emitted when user borrow configs are updated

Parameters ​

NameTypeDescription
userBorrowConfigsstruct Structs.UserBorrowConfig[]The array of updated user borrow configurations

LogPauseUser ​

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

Emitted when a user is paused

Parameters ​

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

LogUnpauseUser ​

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

Emitted when a user is unpaused

Parameters ​

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

LogInitializePoolConfig ​

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

Emitted when the pool configuration is initialized

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 ​

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

Emitted when the price parameters are initialized

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 ​

solidity
event LogPauseSwapAndArbitrage()

Emitted when swap and arbitrage are paused

LogUnpauseSwapAndArbitrage ​

solidity
event LogUnpauseSwapAndArbitrage()

Emitted when swap and arbitrage are unpaused

LogUpdateUserWithdrawalLimit ​

solidity
event LogUpdateUserWithdrawalLimit(address user, uint256 newLimit)

emitted when user withdrawal limit is updated

LogRescueFunds ​

solidity
event LogRescueFunds(address token)

Emitted when funds are rescued

Parameters ​

NameTypeDescription
tokenaddressThe address of the token

LogUpdateMaxSupplyShares ​

solidity
event LogUpdateMaxSupplyShares(uint256 maxSupplyShares)

Emitted when max supply shares are updated

Parameters ​

NameTypeDescription
maxSupplySharesuint256The new maximum supply shares

LogUpdateMaxBorrowShares ​

solidity
event LogUpdateMaxBorrowShares(uint256 maxBorrowShares)

Emitted when max borrow shares are updated

Parameters ​

NameTypeDescription
maxBorrowSharesuint256The new maximum borrow shares

LogToggleOracleActivation ​

solidity
event LogToggleOracleActivation(bool turnOn)

Emitted when oracle activation is toggled

Parameters ​

NameTypeDescription
turnOnboolWhether oracle is turned on