Skip to main content

VaultDistributionHandler

VaultDistributionHandler

Addresses

ChainAddress
Arbitrum Sepolia0xbfede1129FDC0C8337e5BfcC893DFF3CfCbfA780
Base Sepolia0x9578BC7C7E721637f8C89F7BEda4e426c6fC2830
Base Mainnet0xC5B59403fB25B727dc049bd0A57ce73536A44263

Functions

initialize

function initialize(struct StorageInstance app_) external

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