From 9df566298f57bd136b8d666a3a7e9857f14116c2 Mon Sep 17 00:00:00 2001 From: g <5714678+giuseppecrj@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:59:00 -0500 Subject: [PATCH] add more getters --- contracts/src/tokens/towns/mainnet/Towns.sol | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/contracts/src/tokens/towns/mainnet/Towns.sol b/contracts/src/tokens/towns/mainnet/Towns.sol index 6e3dd6ea8..94c0fb5da 100644 --- a/contracts/src/tokens/towns/mainnet/Towns.sol +++ b/contracts/src/tokens/towns/mainnet/Towns.sol @@ -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,