Source Code
Overview
S Balance
More Info
ContractCreator
Loading...
Loading
Contract Name:
SOMockEnzymeFundValueCalculatorRouter
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.18; import "../../../external/enzyme/IEnzymeFundValueCalculatorRouter.sol"; contract SOMockEnzymeFundValueCalculatorRouter is IEnzymeFundValueCalculatorRouter { address weth; constructor (address _weth) { weth = _weth; } function calcGrossShareValue( address /* _vaultProxy */ ) external view returns (address denominationAsset_, uint256 grossShareValue_) { return (weth, 1e18); } function calcNetShareValue( address /* _vaultProxy */ ) external view returns (address denominationAsset_, uint256 netShareValue_) { return (weth, 1e18); } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.0; interface IEnzymeFundValueCalculatorRouter { function calcGrossShareValue(address _vaultProxy) external returns (address denominationAsset_, uint256 grossShareValue_); function calcNetShareValue(address _vaultProxy) external returns (address denominationAsset_, uint256 netShareValue_); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"calcGrossShareValue","outputs":[{"internalType":"address","name":"denominationAsset_","type":"address"},{"internalType":"uint256","name":"grossShareValue_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"calcNetShareValue","outputs":[{"internalType":"address","name":"denominationAsset_","type":"address"},{"internalType":"uint256","name":"netShareValue_","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161017538038061017583398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b60e3806100926000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80633ba6b851146037578063c3552663146037575b600080fd5b605c6042366004607f565b506000546001600160a01b031690670de0b6b3a764000090565b604080516001600160a01b03909316835260208301919091520160405180910390f35b600060208284031215609057600080fd5b81356001600160a01b038116811460a657600080fd5b939250505056fea26469706673582212204a569ab4d24eb4a7f05d6f81cbaed314cd04d05287cea42185fc59e02de1899864736f6c63430008120033000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Deployed Bytecode
0x6080604052348015600f57600080fd5b506004361060325760003560e01c80633ba6b851146037578063c3552663146037575b600080fd5b605c6042366004607f565b506000546001600160a01b031690670de0b6b3a764000090565b604080516001600160a01b03909316835260208301919091520160405180910390f35b600060208284031215609057600080fd5b81356001600160a01b038116811460a657600080fd5b939250505056fea26469706673582212204a569ab4d24eb4a7f05d6f81cbaed314cd04d05287cea42185fc59e02de1899864736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
-----Decoded View---------------
Arg [0] : _weth (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.