ETH Price: $3,434.87 (+2.49%)
Gas: 4 Gwei

Contract

0x62B122A1D1ea2082c47c3Fb70e788C168E96afD8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60a06040190139202024-01-15 17:57:59182 days ago1705341479IN
 Create: PotRateSource
0 ETH0.0054111534.50287358

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PotRateSource

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
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);
}

Settings
{
  "remappings": [
    "aave-v3-core/=lib/aave-v3-core/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc20-helpers/=lib/erc20-helpers/src/",
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pot","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getAPR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pot","outputs":[{"internalType":"contract IPot","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b5060405161026838038061026883398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516101d8610090600039600081816040015260a601526101d86000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634ba2363a1461003b578063c89d5b8b1461007f575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b610087610095565b604051908152602001610076565b60006b033b2e3c9fd0803ce80000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663487bf0826040518163ffffffff1660e01b8152600401602060405180830381865afa158015610102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101269190610143565b6101309190610172565b61013e906301e1338061018b565b905090565b60006020828403121561015557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156101855761018561015c565b92915050565b80820281158282048414176101855761018561015c56fea26469706673582212201999634f5dc5417cb8da9b6e81ef743c5a62e29ede91fbed518a8caf7eb4169064736f6c63430008140033000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf7

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c80634ba2363a1461003b578063c89d5b8b1461007f575b600080fd5b6100627f000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf781565b6040516001600160a01b0390911681526020015b60405180910390f35b610087610095565b604051908152602001610076565b60006b033b2e3c9fd0803ce80000007f000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf76001600160a01b031663487bf0826040518163ffffffff1660e01b8152600401602060405180830381865afa158015610102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101269190610143565b6101309190610172565b61013e906301e1338061018b565b905090565b60006020828403121561015557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156101855761018561015c565b92915050565b80820281158282048414176101855761018561015c56fea26469706673582212201999634f5dc5417cb8da9b6e81ef743c5a62e29ede91fbed518a8caf7eb4169064736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf7

-----Decoded View---------------
Arg [0] : _pot (address): 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf7


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.