Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60a06040 | 20235077 | 142 days ago | IN | 0 ETH | 0.00116553 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PotRateSource
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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; } function decimals() external pure returns (uint8) { return 27; } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity >=0.8.0; interface IRateSource { function getAPR() external view returns (uint256); function decimals() external view returns (uint8); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "erc20-helpers/=lib/erc20-helpers/src/", "forge-std/=lib/forge-std/src/", "sparklend-v1-core/=lib/sparklend-v1-core/contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "sparklend-address-registry/=lib/sparklend-address-registry/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_pot","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"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"}]
Contract Creation Code
60a060405234801561001057600080fd5b5060405161028238038061028283398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516101f261009060003960008181605f015260c001526101f26000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063313ce567146100465780634ba2363a1461005a578063c89d5b8b14610099575b600080fd5b604051601b81526020015b60405180910390f35b6100817f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610051565b6100a16100af565b604051908152602001610051565b60006b033b2e3c9fd0803ce80000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663487bf0826040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610140919061015d565b61014a919061018c565b610158906301e133806101a5565b905090565b60006020828403121561016f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561019f5761019f610176565b92915050565b808202811582820484141761019f5761019f61017656fea2646970667358221220c44e503e213c51fe04a0ea1e7f40d0a8f9834a9c71bd77634b93f789fffebf3464736f6c63430008140033000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063313ce567146100465780634ba2363a1461005a578063c89d5b8b14610099575b600080fd5b604051601b81526020015b60405180910390f35b6100817f000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf781565b6040516001600160a01b039091168152602001610051565b6100a16100af565b604051908152602001610051565b60006b033b2e3c9fd0803ce80000007f000000000000000000000000197e90f9fad81970ba7976f33cbd77088e5d7cf76001600160a01b031663487bf0826040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610140919061015d565b61014a919061018c565b610158906301e133806101a5565b905090565b60006020828403121561016f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561019f5761019f610176565b92915050565b808202811582820484141761019f5761019f61017656fea2646970667358221220c44e503e213c51fe04a0ea1e7f40d0a8f9834a9c71bd77634b93f789fffebf3464736f6c63430008140033
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.