IRebalancerErrors
Defines all custom errors thrown by the Rebalancer contract.
Errors
RebalancerUserPending
The user's assets are not used in a position.
error RebalancerUserPending();
RebalancerUserLiquidated
The user's assets were in a position that has been liquidated.
error RebalancerUserLiquidated();
RebalancerInvalidAddressTo
The to
address is invalid.
error RebalancerInvalidAddressTo();
RebalancerInvalidAmount
The amount of assets is invalid.
error RebalancerInvalidAmount();
RebalancerInsufficientAmount
The amount to deposit is insufficient.
error RebalancerInsufficientAmount();
RebalancerInvalidMaxLeverage
The given maximum leverage is invalid.
error RebalancerInvalidMaxLeverage();
RebalancerInvalidMinAssetDeposit
The given minimum asset deposit is invalid.
error RebalancerInvalidMinAssetDeposit();
RebalancerInvalidTimeLimits
The given time limits are invalid.
error RebalancerInvalidTimeLimits();
RebalancerUnauthorized
The caller is not authorized to perform the action.
error RebalancerUnauthorized();
RebalancerDepositUnauthorized
The user can't initiate or validate a deposit at this time.
error RebalancerDepositUnauthorized();
RebalancerActionNotValidated
The user must validate their deposit or withdrawal.
error RebalancerActionNotValidated();
RebalancerNoPendingAction
The user has no pending deposit or withdrawal requiring validation.
error RebalancerNoPendingAction();
RebalancerValidateTooEarly
Ton was attempted too early, the user must wait for _timeLimits.validationDelay
.
error RebalancerValidateTooEarly();
RebalancerActionCooldown
Ton was attempted too late, the user must wait for _timeLimits.actionCooldown
.
error RebalancerActionCooldown();
RebalancerWithdrawalUnauthorized
The user can't initiate or validate a withdrawal at this time.
error RebalancerWithdrawalUnauthorized();
RebalancerEtherRefundFailed
The address was unable to accept the Ether refund.
error RebalancerEtherRefundFailed();
RebalancerInvalidDelegationSignature
The signature provided for delegation is invalid.
error RebalancerInvalidDelegationSignature();
RebalancerCloseLockedUntil
The user can't initiate a close position until the given timestamp has passed.
error RebalancerCloseLockedUntil(uint256 closeLockedUntil);
Parameters
Name | Type | Description |
---|---|---|
closeLockedUntil | uint256 | The timestamp until which the user must wait to perform a close position action. |