RewardFacet
Last updated
Last updated
This facet contract provides the external functions related to all claims and rewards of the protocol
Claim all the xvs accrued by holder in all markets and VAI
Parameters
Name | Type | Description |
---|---|---|
Claim all the xvs accrued by holder in the specified markets
Parameters
Name | Type | Description |
---|---|---|
Claim all xvs accrued by the holders
Parameters
Claim all the xvs accrued by holder in all markets, a shorthand for claimVenus
with collateral set to true
Parameters
Transfer XVS to the recipient
Parameters
Return the address of the XVS vToken
Return Values
Claim all xvs accrued by the holders
Parameters
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
holder
address
The address to claim XVS for
holder
address
The address to claim XVS for
vTokens
contract VToken[]
The list of markets to claim XVS in
holders
address[]
The addresses to claim XVS for
vTokens
contract VToken[]
The list of markets to claim XVS in
borrowers
bool
Whether or not to claim XVS earned by borrowing
suppliers
bool
Whether or not to claim XVS earned by supplying
holder
address
The address to claim XVS for
recipient
address
The address of the recipient to transfer XVS to
amount
uint256
The amount of XVS to (possibly) transfer
[0]
address
The address of XVS vToken
holders
address[]
The addresses to claim XVS for
vTokens
contract VToken[]
The list of markets to claim XVS in
borrowers
bool
Whether or not to claim XVS earned by borrowing
suppliers
bool
Whether or not to claim XVS earned by supplying
collateral
bool
Whether or not to use XVS earned as collateral, only takes effect when the holder has a shortfall