LeoProxy

Git Source

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

NameTypeDescription
<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

NameTypeDescription
<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

NameTypeDescription
<none>address
<none>bytes8

poolLp

pool LP tokens vested to Leo for this pool

function poolLp(address) external returns (uint256);

Parameters

NameTypeDescription
<none>address

Returns

NameTypeDescription
<none>uint256lp 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

NameTypeDescription
<none>PositionDetails[]
<none>bytes8[]
<none>address

vestPosition

vest a position that the caller owns.

function vestPosition(address, uint256, address) external;

Parameters

NameTypeDescription
<none>address
<none>uint256
<none>address

divestPosition

divest a position, returning the position ID to the user

function divestPosition(uint256, address) external;

Parameters

NameTypeDescription
<none>uint256
<none>address