Swap(contract IERC20,bytes,uint256,uint256)
| Name | Type | Description |
|---|---|---|
| swappedToken | contract IERC20 | |
| path | bytes | |
| amountIn | uint256 | |
| amountOut | uint256 |
constructor(address,address,contract ISwapRouter) public
| Name | Type | Description |
|---|---|---|
| _ALGB | address | |
| _stakingAddress | address | |
| _AlgebraRouter | contract ISwapRouter |
onlyRelayerOrOwner
swapToALGB(contract IERC20,bytes,uint256,uint256) external
| Name | Type | Description |
|---|---|---|
| tokenToSwap | contract IERC20 | |
| path | bytes | |
| amountOutMin | uint256 | |
| withFee | uint256 |
onlyRelayerOrOwner
transferALGB(uint256) external
| Name | Type | Description |
|---|---|---|
| percentToTransfer | uint256 |
onlyOwner
setRelayer(address) external
| Name | Type | Description |
|---|---|---|
| _relayer | address |
onlyOwner
setStakingAddress(address) external
| Name | Type | Description |
|---|---|---|
| _staking | address |
onlyOwner
sweepTokens(contract IERC20,uint256,address) external
| Name | Type | Description |
|---|---|---|
| token | contract IERC20 | |
| amount | uint256 | |
| _to | address |
onlyRelayerOrOwner
transferALGBToStaking() external
onlyOwner
collectAccumulatedALGB() external
onlyOwner
setStartTime(uint256) external
| Name | Type | Description |
|---|---|---|
| _startTime | uint256 |
onlyOwner
setAmountByBack(uint256) external
| Name | Type | Description |
|---|---|---|
| _amount | uint256 |
onlyOwner
setMaxCount(uint256) external
| Name | Type | Description |
|---|---|---|
| _maxCount | uint256 |
onlyOwner
setRate(uint256) external
| Name | Type | Description |
|---|---|---|
| _rate | uint256 |
onlyOwner
transferOwner(address) external
| Name | Type | Description |
|---|---|---|
| _newOwner | address |