Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 2 : PotRateSource.sol
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.0; import { IRateSource } from "./interfaces/IRateSource.sol"; interface IPot { function dsr() external view returns (uint256); } contract PotRateSource is IRateSource { IPot public immutable pot; constructor(address _pot) { pot = IPot(_pot); } function getAPR() external override view returns (uint256) { return (pot.dsr() - 1e27) * 365 days; } }
File 2 of 2 : IRateSource.sol
// SPDX-License-Identifier: AGPL-3.0 pragma solidity >=0.8.0; interface IRateSource { function getAPR() external view returns (uint256); }
Please enter a contract address above to load the contract details and source code.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.