Skip to main content

ISmartYield

Functions

sellTokens

function sellTokens(
uint256 tokenAmount_,
uint256 minUnderlying_,
uint256 deadline_
) external

Parameters

NameTypeDescription
tokenAmount_uint256
minUnderlying_uint256
deadline_uint256

transfer

function transfer(
address account,
uint256 amount
) external

Parameters

NameTypeDescription
accountaddress
amountuint256

SmartYieldRedeemer

Functions

constructor

function constructor(
address _target,
contract IERC20 _underlying
) public

Parameters

NameTypeDescription
_targetaddress
_underlyingcontract IERC20

redeem

function redeem(
contract ISmartYield bbJunior,
uint256 amount
) external

redeem BarnBridge SmartYield juniors

Parameters

NameTypeDescription
bbJuniorcontract ISmartYieldsmart yield token to redeem from
amountuint256tokens to redeem

sweep

function sweep(
contract IERC20 token,
uint256 amount
) external

Parameters

NameTypeDescription
tokencontract IERC20
amountuint256