Events ​
LogTurnOnSmartCol ​
event LogTurnOnSmartCol(uint256 token0Amt)
Emitted when smart collateral is turned on
Parameters ​
Name | Type | Description |
---|---|---|
token0Amt | uint256 | The amount of token0 used for smart collateral |
LogTurnOnSmartDebt ​
event LogTurnOnSmartDebt(uint256 token0Amt)
Emitted when smart debt is turned on
Parameters ​
Name | Type | Description |
---|---|---|
token0Amt | uint256 | The amount of token0 used for smart debt |
LogUpdateFeeAndRevenueCut ​
event LogUpdateFeeAndRevenueCut(uint256 fee, uint256 revenueCut)
Emitted when fee and revenue cut are updated
Parameters ​
Name | Type | Description |
---|---|---|
fee | uint256 | The new fee value |
revenueCut | uint256 | The new revenue cut value |
LogUpdateRangePercents ​
event LogUpdateRangePercents(uint256 upperPercent, uint256 lowerPercent, uint256 shiftTime)
Emitted when range percents are updated
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 ​
event LogUpdateThresholdPercent(uint256 upperThresholdPercent, uint256 lowerThresholdPercent, uint256 thresholdShiftTime, uint256 shiftTime)
Emitted when threshold percent is updated
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 ​
event LogUpdateCenterPriceAddress(uint256 centerPriceAddress, uint256 percent, uint256 time)
Emitted when center price address is updated
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 ​
event LogUpdateHookAddress(uint256 hookAddress)
Emitted when hook address is updated
Parameters ​
Name | Type | Description |
---|---|---|
hookAddress | uint256 | The new hook address nonce |
LogUpdateCenterPriceLimits ​
event LogUpdateCenterPriceLimits(uint256 maxCenterPrice, uint256 minCenterPrice)
Emitted when center price limits are updated
Parameters ​
Name | Type | Description |
---|---|---|
maxCenterPrice | uint256 | The new maximum center price |
minCenterPrice | uint256 | The new minimum center price |
LogUpdateUtilizationLimit ​
event LogUpdateUtilizationLimit(uint256 token0UtilizationLimit, uint256 token1UtilizationLimit)
Emitted when utilization limit is updated
Parameters ​
Name | Type | Description |
---|---|---|
token0UtilizationLimit | uint256 | The new utilization limit for token0 |
token1UtilizationLimit | uint256 | The new utilization limit for token1 |
LogUpdateUserSupplyConfigs ​
event LogUpdateUserSupplyConfigs(struct Structs.UserSupplyConfig[] userSupplyConfigs)
Emitted when user supply configs are updated
Parameters ​
Name | Type | Description |
---|---|---|
userSupplyConfigs | struct Structs.UserSupplyConfig[] | The array of updated user supply configurations |
LogUpdateUserBorrowConfigs ​
event LogUpdateUserBorrowConfigs(struct Structs.UserBorrowConfig[] userBorrowConfigs)
Emitted when user borrow configs are updated
Parameters ​
Name | Type | Description |
---|---|---|
userBorrowConfigs | struct Structs.UserBorrowConfig[] | The array of updated user borrow configurations |
LogPauseUser ​
event LogPauseUser(address user, bool pauseSupply, bool pauseBorrow)
Emitted when a user is paused
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 ​
event LogUnpauseUser(address user, bool unpauseSupply, bool unpauseBorrow)
Emitted when a user is unpaused
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 ​
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 ​
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 ​
event LogInitializePriceParams(uint256 upperPercent, uint256 lowerPercent, uint256 upperShiftThreshold, uint256 lowerShiftThreshold, uint256 thresholdShiftTime, uint256 maxCenterPrice, uint256 minCenterPrice)
Emitted when the price parameters are initialized
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 ​
event LogPauseSwapAndArbitrage()
Emitted when swap and arbitrage are paused
LogUnpauseSwapAndArbitrage ​
event LogUnpauseSwapAndArbitrage()
Emitted when swap and arbitrage are unpaused
LogUpdateUserWithdrawalLimit ​
event LogUpdateUserWithdrawalLimit(address user, uint256 newLimit)
emitted when user withdrawal limit is updated
LogRescueFunds ​
event LogRescueFunds(address token)
Emitted when funds are rescued
Parameters ​
Name | Type | Description |
---|---|---|
token | address | The address of the token |
LogUpdateMaxSupplyShares ​
event LogUpdateMaxSupplyShares(uint256 maxSupplyShares)
Emitted when max supply shares are updated
Parameters ​
Name | Type | Description |
---|---|---|
maxSupplyShares | uint256 | The new maximum supply shares |
LogUpdateMaxBorrowShares ​
event LogUpdateMaxBorrowShares(uint256 maxBorrowShares)
Emitted when max borrow shares are updated
Parameters ​
Name | Type | Description |
---|---|---|
maxBorrowShares | uint256 | The new maximum borrow shares |
LogToggleOracleActivation ​
event LogToggleOracleActivation(bool turnOn)
Emitted when oracle activation is toggled
Parameters ​
Name | Type | Description |
---|---|---|
turnOn | bool | Whether oracle is turned on |