IYearnStakingDelegate

Git Source

Functions

deposit

function deposit(address gauge, uint256 amount) external;

withdraw

function withdraw(address gauge, uint256 amount) external;

withdraw

function withdraw(address gauge, uint256 amount, address receiver) external;

lockYfi

function lockYfi(uint256 amount) external returns (IVotingYFI.LockedBalance memory);

harvest

function harvest(address vault) external returns (uint256);

setCoveYfiRewardForwarder

function setCoveYfiRewardForwarder(address forwarder) external;

setGaugeRewardSplit

function setGaugeRewardSplit(
    address gauge,
    uint64 treasuryPct,
    uint64 coveYfiPct,
    uint64 userPct,
    uint64 veYfiPct
)
    external;

setBoostRewardSplit

function setBoostRewardSplit(uint128 treasuryPct, uint128 coveYfiPct) external;

setExitRewardSplit

function setExitRewardSplit(uint128 treasuryPct, uint128 coveYfiPct) external;

setSwapAndLock

function setSwapAndLock(address swapAndLock) external;

balanceOf

function balanceOf(address user, address gauge) external view returns (uint256);

totalDeposited

function totalDeposited(address gauge) external view returns (uint256);

depositLimit

function depositLimit(address gauge) external view returns (uint256);

availableDepositLimit

function availableDepositLimit(address gauge) external view returns (uint256);

gaugeStakingRewards

function gaugeStakingRewards(address gauge) external view returns (address);

gaugeRewardReceivers

function gaugeRewardReceivers(address gauge) external view returns (address);

getGaugeRewardSplit

function getGaugeRewardSplit(address gauge) external view returns (RewardSplit memory);

getBoostRewardSplit

function getBoostRewardSplit() external view returns (BoostRewardSplit memory);

getExitRewardSplit

function getExitRewardSplit() external view returns (ExitRewardSplit memory);

treasury

function treasury() external view returns (address);

Structs

RewardSplit

struct RewardSplit {
    uint64 treasury;
    uint64 coveYfi;
    uint64 user;
    uint64 lock;
}

ExitRewardSplit

struct ExitRewardSplit {
    uint128 treasury;
    uint128 coveYfi;
}

BoostRewardSplit

struct BoostRewardSplit {
    uint128 treasury;
    uint128 coveYfi;
}