Fei Protocol
Search…
RatioPCVController
Allows for percentage withdrawals of PCV from PCV Deposits

Contract

RatioPCVController implements CoreRef

Description

Enables withdrawing a percentage of PCV from a IPCVDeposit contract. This is useful when the amount of PCV in the contract can change during the voting and execution windows of a proposal.
e.g. sending ETH to the EthPCVDripper from the EthBondingCurve
PCVController⚙️

Events

Withdraw
A withdrawal of PCV to a target
type
param
description
address indexed
pcvDeposit
The PCV deposit to withdraw from
address indexed
to
the target to send PCV to
uint256
amount
amount withdrawn

Public State-Changing Functions

withdrawRatio

1
function withdrawRatio(IPCVDeposit pcvDeposit, address to, uint256 basisPoints) public;
Copied!
Withdraws basisPoints / 10000 PCV from pcvDeposit and sends to address to
Calculates the amount of PCV by calling totalValue() on the pcvDeposit and multiplying by the ratio
emits Withdraw
Last modified 8mo ago