AlgebraVault
Modifiers
onlyOwner
onlyRelayerOrOwner
Events
Swap
Swap(contract IERC20,bytes,uint256,uint256)
swappedToken
contract IERC20
path
bytes
amountIn
uint256
amountOut
uint256
Variables
address stakingAddress
address ALGB immutable
address owner
address relayer
uint256 accumulatedALGB
uint256 startTime
uint256 count
uint256 maxCount
uint256 transferRate
uint256 amountToTransferByBack
Functions
constructor
constructor(address,address,contract ISwapRouter)
public
_ALGB
address
_stakingAddress
address
_AlgebraRouter
contract ISwapRouter
swapToALGB
onlyRelayerOrOwner
swapToALGB(contract IERC20,bytes,uint256,uint256)
external
tokenToSwap
contract IERC20
path
bytes
amountOutMin
uint256
withFee
uint256
transferALGB
onlyRelayerOrOwner
transferALGB(uint256)
external
percentToTransfer
uint256
setRelayer
onlyOwner
setRelayer(address)
external
_relayer
address
setStakingAddress
onlyOwner
setStakingAddress(address)
external
_staking
address
sweepTokens
onlyOwner
sweepTokens(contract IERC20,uint256,address)
external
token
contract IERC20
amount
uint256
_to
address
transferALGBToStaking
onlyRelayerOrOwner
transferALGBToStaking()
external
collectAccumulatedALGB
onlyOwner
collectAccumulatedALGB()
external
setStartTime
onlyOwner
setStartTime(uint256)
external
_startTime
uint256
setAmountByBack
onlyOwner
setAmountByBack(uint256)
external
_amount
uint256
setMaxCount
onlyOwner
setMaxCount(uint256)
external
_maxCount
uint256
setRate
onlyOwner
setRate(uint256)
external
_rate
uint256
transferOwner
onlyOwner
transferOwner(address)
external
_newOwner
address