Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x8Cb01726...214F9a735 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
YoRateProvider
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 100 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IRateProvider {
function getRate() external view returns (uint256);
}
interface IYoVault {
function convertToAssets(uint256 shares) external view returns (uint256);
}
/// @title YoRateProvider
/// @notice A contract that provides the rate of a YoVault
/// @dev The rate is the number of assets that 1 share is worth
contract YoRateProvider is IRateProvider {
IYoVault public immutable VAULT;
constructor(address _vault) {
VAULT = IYoVault(_vault);
}
function getRate() external view returns (uint256) {
return VAULT.convertToAssets(1e18);
}
}{
"remappings": [
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
"@solmate/=node_modules/solmate/src/",
"@morpho-blue/=node_modules/@morpho-org/morpho-blue/src/",
"forge-std/=node_modules/forge-std/src/",
"@morpho-org/=node_modules/@morpho-org/",
"solmate/=node_modules/solmate/"
],
"optimizer": {
"enabled": true,
"runs": 100
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "shanghai",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"contract IYoVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x60a0604052348015600e575f5ffd5b506040516101ce3803806101ce833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b60805161014b6100835f395f8181603d015260b1015261014b5ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063411557d114610038578063679aefce1461007c575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b610084610092565b604051908152602001610073565b6040516303d1689d60e11b8152670de0b6b3a764000060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307a2d13a90602401602060405180830381865afa1580156100fe573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101229190610127565b905090565b5f60208284031215610137575f5ffd5b505191905056fea164736f6c634300081c000a000000000000000000000000bcbc8cb4d1e8ed048a6276a5e94a3e952660bcbc
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063411557d114610038578063679aefce1461007c575b5f5ffd5b61005f7f000000000000000000000000bcbc8cb4d1e8ed048a6276a5e94a3e952660bcbc81565b6040516001600160a01b0390911681526020015b60405180910390f35b610084610092565b604051908152602001610073565b6040516303d1689d60e11b8152670de0b6b3a764000060048201525f907f000000000000000000000000bcbc8cb4d1e8ed048a6276a5e94a3e952660bcbc6001600160a01b0316906307a2d13a90602401602060405180830381865afa1580156100fe573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101229190610127565b905090565b5f60208284031215610137575f5ffd5b505191905056fea164736f6c634300081c000a
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.