Skip to main content

IVaultDistributionHandler

IVaultDistributionHandler

Addresses

ChainAddress

Functions

transferRewardAmount

Donate collateral to the vault

function transferRewardAmount(uint256 rewardAmount) external
Dev note

Receives fees, rewards, etc. for distribution to depositors.

Parameters

NameTypeDescription
rewardAmountuint256collateral tokens to transfer from sender to vault

addReferralFee

function addReferralFee(uint256 amount, address user) external returns (Shares shares)

distributeDecrease

function distributeDecrease(
uint256 margin,
address owner,
address recipient,
uint256 totalFee,
int256 netPnl
) external

approveAndUpdateLiquidatorReward

function approveAndUpdateLiquidatorReward(
uint256 remainingReward,
uint256 liquidatorReward,
uint256 increaseBalance,
address liquidator
) external

VaultDistributionDelegate

Addresses

ChainAddress

Functions

transferRewardAmount

function transferRewardAmount(contract IVaultDistributionHandler handler, uint256 rewardAmount) internal

addReferralFee

function addReferralFee(
contract IVaultDistributionHandler handler,
uint256 amount,
address user
) internal returns (
Shares shares
)

distributeDecrease

function distributeDecrease(
contract IVaultDistributionHandler handler,
uint256 margin,
address owner,
address recipient,
uint256 totalFee,
int256 netPnl
) internal

approveAndUpdateLiquidatorReward

function approveAndUpdateLiquidatorReward(
contract IVaultDistributionHandler handler,
uint256 remainingReward,
uint256 liquidatorReward,
uint256 increaseBalance,
address liquidator
) internal