Skip to content

Commit

Permalink
add more getters
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppecrj committed Jan 13, 2025
1 parent 7b1a38e commit 9df5662
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions contracts/src/tokens/towns/mainnet/Towns.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,27 @@ contract Towns is
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* Inflation */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
function inflationReceiver() external view returns (address) {
return TokenInflationLib.inflationReceiver();

/// @notice The final inflation rate in basis points (0-100)
function finalInflationRate() external view returns (uint256) {
return TokenInflationLib.finalInflationRate();
}

function currentInflationRate() external view returns (uint256) {
return TokenInflationLib.getCurrentInflationRateBPS();
/// @notice The address that receives the inflation
function inflationReceiver() external view returns (address) {
return TokenInflationLib.inflationReceiver();
}

/// @notice The last time the inflation was minted
function lastMintTime() external view returns (uint256) {
return TokenInflationLib.lastMintTime();
}

/// @notice The current inflation rate in basis points (0-100)
function currentInflationRate() external view returns (uint256) {
return TokenInflationLib.getCurrentInflationRateBPS();
}

/// @inheritdoc ITowns
function setOverrideInflation(
bool overrideInflation,
Expand Down

0 comments on commit 9df5662

Please sign in to comment.