Interactions
setMinRampTime
Allows to set MinRampTime
function setMinRampTime(uint256 _minRampTime) external;
Parameters
_minRampTime
uint256
The new minimum ramp time value
Access: only Owner
stopRamp
Allows guardians to cancel an ongoing A ramp in emergencies
function stopRamp() external;
Access: only Owner
rampA
Allows to gradually ramp the A coefficient within allowed bounds
function rampA(uint256 _futureA, uint256 _futureTime) external;
Parameters
_futureA
uint256
The target value of A
_futureTime
uint256
UNIX timestamp when the ramp should complete
Access: only Owner
View Functions
getA
Returns the current amplification coefficient value, accounting for any ongoing ramp.
function getA()
public
view
returns (uint256);
Returns
<none>
uint256
The current A value (interpolated if ramp is in progress, otherwise the final value)
Behavior:
If no ramp is active: returns the stable A value
If ramp is in progress: returns linearly interpolated value based on elapsed time
Uses precise mathematical interpolation for smooth transitions
isRamping
Checks whether a ramp operation is currently in progress.
function isRamping()
external
view
returns (bool);
Returns
<none>
bool
true
if a ramp is active, false
otherwise
Last updated