PaymentSplitter
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
Name | Type | Description |
---|---|---|
premiaAmount | uint256 | Amount of PREMIA to send back to mining contract |
usdcAmount | uint256 | Amount of USDC to send to vxPREMIA staking contract |