LeoProxy
Inherits: ILeo
Functions
directDelegate
function directDelegate(address to) internal;
constructor
constructor(address _collect, address _extras, address _emergency);
createCampaign
create a campaign with the parameters given.
takes extraMax from the user of the token given
function createCampaign(bytes8, address, int32, int32, uint64, address, uint256, uint64, uint64) external;
Parameters
Name | Type | Description |
---|---|---|
<none> | bytes8 | |
<none> | address | |
<none> | int32 | |
<none> | int32 | |
<none> | uint64 | |
<none> | address | |
<none> | uint256 | |
<none> | uint64 | |
<none> | uint64 |
campaignDetails
details of a campaign
function campaignDetails(bytes8) external returns (int32, int32, uint64, address, uint256, uint256, uint64, uint64);
Parameters
Name | Type | Description |
---|---|---|
<none> | bytes8 |
cancelCampaign
cancel an ongoing campaign by amending it to have 0
only usable by the admin of the campaign
function cancelCampaign(address, bytes8) external;
Parameters
Name | Type | Description |
---|---|---|
<none> | address | |
<none> | bytes8 |
poolLp
pool LP tokens vested to Leo for this pool
function poolLp(address) external returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
<none> | address |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | lp tokens to return |
collect
collect rewards for a position vested in a pool with the campaigns given
function collect(PositionDetails[] memory, bytes8[] memory, address) external returns (CollectRewards memory);
Parameters
Name | Type | Description |
---|---|---|
<none> | PositionDetails[] | |
<none> | bytes8[] | |
<none> | address |
vestPosition
vest a position that the caller owns.
function vestPosition(address, uint256, address) external;
Parameters
Name | Type | Description |
---|---|---|
<none> | address | |
<none> | uint256 | |
<none> | address |
divestPosition
divest a position, returning the position ID to the user
function divestPosition(uint256, address) external;
Parameters
Name | Type | Description |
---|---|---|
<none> | uint256 | |
<none> | address |