agent0.hyperfuzz.fork_fuzz.accrue_interest_fork
Function to accrue interest in underlying yields when fork fuzzing.
Functions
|
Function to accrue interest in underlying yields when fork fuzzing. |
Module Contents
- agent0.hyperfuzz.fork_fuzz.accrue_interest_fork.accrue_interest_fork(interface: agent0.ethpy.hyperdrive.HyperdriveReadWriteInterface, variable_rate: fixedpointmath.FixedPoint, block_number_before_advance: int) None
Function to accrue interest in underlying yields when fork fuzzing. This function looks at the kind of pool defined in the interface, and matches the correct accrual function to call.
- Parameters:
interface (HyperdriveReadWriteInterface) – The interface to the Hyperdrive pool.
variable_rate (FixedPoint) – The variable rate of the pool.
block_number_before_advance (int) – The block number before time was advanced.