InfraredVaultDeployer
Functions
deploy
Deploys a new InfraredVault
or InfraredBGTVault
contract.
If _stakingToken == InfraredBGT, then deploys InfraredBGTVault
.
function deploy(address _stakingToken, uint256 _rewardsDuration)
public
returns (address _new);
Parameters
Name | Type | Description |
---|---|---|
_stakingToken | address | address The address of the staking token. |
_rewardsDuration | uint256 | The duration of the rewards for the vault. |
Returns
Name | Type | Description |
---|---|---|
_new | address | address The address of the new InfraredVault contract. |