PaymentSplitter

Git Source

Inherits: IPaymentSplitter, ReentrancyGuard

State Variables

PREMIA

IERC20 public immutable PREMIA;

USDC

IERC20 public immutable USDC;

VX_PREMIA

IVxPremia public immutable VX_PREMIA;

MINING

IMiningAddRewards public immutable MINING;

Functions

constructor

constructor(IERC20 premia, IERC20 usdc, IVxPremia vxPremia, IMiningAddRewards mining);

pay

Distributes rewards to vxPREMIA staking contract, and send back PREMIA leftover to mining contract

function pay(uint256 premiaAmount, uint256 usdcAmount) external nonReentrant;

Parameters

NameTypeDescription
premiaAmountuint256Amount of PREMIA to send back to mining contract
usdcAmountuint256Amount of USDC to send to vxPREMIA staking contract