Skip to content
Verified contractExactMIT

yvSplitter

Address0xdcc5af5e52ae7fe8ec9fdace7ce83f3a4db15e09
Balance

0.2131 ETH

 

Transactions

6

 

Compiler

solc 0.8.7

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.7+commit.e28d00a7
Language
solidity
Optimization
No
EVM version
london
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
16,130,210
Creation transaction
0x9ebd0adf59…374c035214

contracts/yvSplitter.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract yvSplitter {
    address[] recievers = [0x98e0b03e9a722B57CE97EEB0eb2930C6FeC55584, 0xFF1fe72346002C71030cB8690Ddc4993b88C376E];
    uint256[] shares = [67, 33];

    function withdraw() external {
        uint256 balance = address(this).balance;
        for (uint256 i; i < recievers.length; i++) {
            uint256 amountToSend = (balance * shares[i]) / 100;
            payable(recievers[i]).transfer(amountToSend);
        }
    }

    receive() external payable {}
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "london",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.