Sonic Blaze Testnet

Contract

0xf98a47ba4477fcEE9b9353e4bCD47f320d69ff40

Overview

S Balance

Sonic Blaze LogoSonic Blaze LogoSonic Blaze Logo0 S

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

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)

File 1 of 2 : SOMockEnzymeFundValueCalculatorRouter.sol
// 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);
  }
}

File 2 of 2 : IEnzymeFundValueCalculatorRouter.sol
// 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_);
}

Settings
{
  "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"}]

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


Block Transaction 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

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.