modifier onlyOwner()
internal
modifier onlyRelayerOrOwner()
internal
event Swap(contract IERC20 swappedToken, bytes path, uint256 amountIn, uint256 amountOut)
Name | Type | Description |
---|---|---|
swappedToken | contract IERC20 | |
path | bytes | |
amountIn | uint256 | |
amountOut | uint256 |
constructor(address _ALGB, address _stakingAddress, contract ISwapRouter _AlgebraRouter) public
public
Name | Type | Description |
---|---|---|
_ALGB | address | |
_stakingAddress | address | |
_AlgebraRouter | contract ISwapRouter |
function swapToALGB(contract IERC20 tokenToSwap, bytes path, uint256 amountOutMin, uint256 withFee) external
external
Name | Type | Description |
---|---|---|
tokenToSwap | contract IERC20 | |
path | bytes | |
amountOutMin | uint256 | |
withFee | uint256 |
function transferALGB(uint256 percentToTransfer) external
external
Name | Type | Description |
---|---|---|
percentToTransfer | uint256 |
function setRelayer(address _relayer) external
external
Name | Type | Description |
---|---|---|
_relayer | address |
function setStakingAddress(address _staking) external
external
Name | Type | Description |
---|---|---|
_staking | address |
function sweepTokens(contract IERC20 token, uint256 amount, address _to) external
external
Name | Type | Description |
---|---|---|
token | contract IERC20 | |
amount | uint256 | |
_to | address |
function transferALGBToStaking() external
external
function collectAccumulatedALGB() external
external
function setStartTime(uint256 _startTime) external
external
Developer note: Sets start time of backend transfers campaign
Name | Type | Description |
---|---|---|
_startTime | uint256 |
function setAmountByBack(uint256 _amount) external
external
Name | Type | Description |
---|---|---|
_amount | uint256 |
function setMaxCount(uint256 _maxCount) external
external
Name | Type | Description |
---|---|---|
_maxCount | uint256 |
function setRate(uint256 _rate) external
external
Name | Type | Description |
---|---|---|
_rate | uint256 |
function transferOwner(address _newOwner) external
external
Name | Type | Description |
---|---|---|
_newOwner | address |