VaultDistributionHandler
VaultDistributionHandler
Addresses
Chain | Address |
---|---|
Arbitrum Sepolia | 0xbfede1129FDC0C8337e5BfcC893DFF3CfCbfA780 |
Base Sepolia | 0x9578BC7C7E721637f8C89F7BEda4e426c6fC2830 |
Base Mainnet | 0xC5B59403fB25B727dc049bd0A57ce73536A44263 |
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
Name | Type | Description |
---|---|---|
rewardAmount | uint256 | collateral 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