AlchemyDAO
1.0.0
1.0.0
  • Introduction
  • Protocol
    • How It Works
    • Create an AlchemyDAO for your NFT
    • Earn Staking Rewards
    • Token Distribution
    • Deployments
    • Dapps
  • Smart Contracts
    • AlchemyFactory
    • GovernorAlphaFactory
    • TimelockFactory
    • AlchemyRouter
    • ALCH
    • StakingRewards
    • IAlchemyFactory
    • IStakingRewards
    • DutchAuctionFactory
    • DutchAuction
Powered by GitBook
On this page

Was this helpful?

  1. Smart Contracts

IStakingRewards

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.24;

// https://docs.synthetix.io/contracts/source/interfaces/istakingrewards
interface IStakingRewards {
    // Views
    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function getRewardForDuration() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    // Mutative

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function getReward() external;

    function exit() external;

    function notifyRewardAmount(uint256 reward) external;
}
PreviousIAlchemyFactoryNextDutchAuctionFactory

Last updated 4 years ago

Was this helpful?