InfraredVaultDeployer

Git Source

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

NameTypeDescription
_stakingTokenaddressaddress The address of the staking token.
_rewardsDurationuint256The duration of the rewards for the vault.

Returns

NameTypeDescription
_newaddressaddress The address of the new InfraredVault contract.