Null Minter

Description:

Smart contract deployed on Ethereum.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

# @version 0.3.10
"""
@title Null Minter
@author Yearn Finance
@license GNU AGPLv3
@notice
    Dummy minter that returns zero values for any future epoch
"""

interface Minter:
    def mint(_epoch: uint256) -> uint256: nonpayable

implements: Minter

last_epoch: public(immutable(uint256))

@external
def __init__(_last_epoch: uint256):
    """
    @notice Constructor
    @param _last_epoch Last completed epoch prior to activation
    """
    last_epoch = _last_epoch

@external
@view
def preview(_epoch: uint256) -> uint256:
    """
    @notice Estimate tokens minted in a future epoch
    @param _epoch Epoch number
    @return Estimated tokens minted
    """
    assert _epoch > last_epoch
    return 0

@external
def mint(_epoch: uint256) -> uint256:
    """
    @notice Mint tokens for a specific epoch
    @param _epoch Epoch number
    @return Amount of tokens minted
    @dev Only callable by gauge controller
    @dev Should only be called for a finished epoch
    @dev Should only be called in sequence
    """
    assert _epoch > last_epoch
    return 0

Tags:
addr:0x9f146c25e7dd462119b497f27309227bba160fd3|verified:true|block:23597172|tx:0x86dbacaf30adb3356523393ab844ea05c380c5a68fc92bca49e0ceab72c301c3|first_check:1760705194

Submitted on: 2025-10-17 14:46:34

Comments

Log in to comment.

No comments yet.