IRampAController
Interface for the RampAController contract that manages gradual A parameter changes
Functions
setMinRampTime
Sets a new minimum ramp time for A changes
function setMinRampTime(uint256 _newMinRampTime) external;
Parameters
Name | Type | Description |
---|---|---|
_newMinRampTime | uint256 | New minimum ramp time in seconds |
rampA
Initiates the ramping of A from current value to the target over the specified duration
function rampA(uint256 _futureA, uint256 _futureTime) external;
Parameters
Name | Type | Description |
---|---|---|
_futureA | uint256 | Target A value |
_futureTime | uint256 | Timestamp when ramping should complete |
stopRamp
Stops an ongoing ramp and freezes A at the current value
function stopRamp() external;
minRampTime
Returns the current minimum ramp time required for A changes
function minRampTime() external view returns (uint256);
getA
Returns the current A value based on the ongoing ramp progress or the static value if no ramp
function getA() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The current A value |
isRamping
Checks if the controller is currently in a ramping state
function isRamping() external view returns (bool);
Returns
Name | Type | Description |
---|---|---|
<none> | bool | True if ramping, false otherwise |
initialA
Returns the initial A value for the current/most recent ramp
function initialA() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The initial A value |
futureA
Returns the target A value for the current/most recent ramp
function futureA() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The target A value |
initialATime
Returns the timestamp when the current/most recent ramp started
function initialATime() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The timestamp |
futureATime
Returns the timestamp when the current/most recent ramp will/did complete
function futureATime() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The timestamp |