GLMR Price: $0.019252 (-3.08%)

Contract

0x492411d7702e3710F3D374610a4f8d564FEaa516

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Transfer37570442023-06-11 9:59:30964 days ago1686477570IN
0x492411d7...64FEaa516
0.2 GLMR0.01008457142.91796209
Transfer37569952023-06-11 9:49:36964 days ago1686476976IN
0x492411d7...64FEaa516
0.01 GLMR0.00335774143.6530693
Transfer37565782023-06-11 8:24:42964 days ago1686471882IN
0x492411d7...64FEaa516
0.1 GLMR0.00319465138.89793867
Transfer37565762023-06-11 8:24:18964 days ago1686471858IN
0x492411d7...64FEaa516
0.1 GLMR0.00319501138.91356204
Transfer37564152023-06-11 7:51:42964 days ago1686469902IN
0x492411d7...64FEaa516
0.15 GLMR0.00320398138.6945956
Transfer37564132023-06-11 7:51:18964 days ago1686469878IN
0x492411d7...64FEaa516
0.15 GLMR0.002909138.51745285

Latest 3 internal transactions

Parent Transaction Hash Block From To
37570442023-06-11 9:59:30964 days ago1686477570
0x492411d7...64FEaa516
0.05716914 GLMR
37570442023-06-11 9:59:30964 days ago1686477570
0x492411d7...64FEaa516
0.14283085 GLMR
37563902023-06-11 7:46:36964 days ago1686469596  Contract Creation0 GLMR
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PrePaidContract

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at moonbeam.moonscan.io on 2023-06-11
*/

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.18 <0.8.20;

abstract contract AbstractTM {
  address internal masterCopy;

  bytes32 internal name32;
  uint256 private ownerPrices;                                                  // buyPrice, sellPrice, owner address

  mapping(address => uint256)                     private balances;
  mapping(address => mapping(address => uint256)) private allowed;

  function getMemberBalances(bytes32 hash,address gwfc) external view virtual returns (uint[] memory);
  function balanceOf(address tokenOwner) external view virtual returns (uint thebalance);
  function sellPrice() external view virtual returns (uint256 sp);
  function buyPrice() external view virtual returns (uint256 bp);
  function name() external view virtual returns (string memory);
  function owner() external view virtual returns (address ow);
  function getMasterCopy() external view virtual returns (address);
}

abstract contract AbstractTPC {
  address public masterCopy;
  function upgrade(address master) external virtual payable;
  function version() public pure virtual returns(uint256 v);
}

contract PrePaidContract {
    address private pp_account;
    address private pp_owner;

    event PrePaidCreated(address indexed);
    event DepositPrePayment(address from, uint256 value);
    
    constructor(address _account) payable {
      pp_account = _account;
      pp_owner   = AbstractTM(AbstractTPC(msg.sender).masterCopy()).getMasterCopy();
      emit PrePaidCreated(address(this));
    }
    
    receive() external payable {
      if (msg.value==0) return;                                                 // no payment at all
      
      uint256 gasPrice;
      assembly { gasPrice := gasprice() }
  
      require(payable(pp_account).send(msg.value-uint(gasPrice*400296))&&payable(pp_owner).send(address(this).balance),"pp"); // forwarding funding - cost of transaction
     
      emit DepositPrePayment(msg.sender, msg.value);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DepositPrePayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"","type":"address"}],"name":"PrePaidCreated","type":"event"},{"stateMutability":"payable","type":"receive"}]

60806040526040516103003803806103008339810160408190526100229161014f565b600080546001600160a01b0319166001600160a01b0383161790556040805163530ca43760e11b81529051339163a619486e9160048083019260209291908290030181865afa158015610079573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061009d919061014f565b6001600160a01b03166304e80e906040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fe919061014f565b600180546001600160a01b0319166001600160a01b039290921691909117905560405130907f1ba71f9564fde2683a8a8cdc86fb4d2710c19374a52c8719412dee7270841d8490600090a25061017f565b60006020828403121561016157600080fd5b81516001600160a01b038116811461017857600080fd5b9392505050565b6101728061018e6000396000f3fe6080604052366100f1573460000361001357005b6000543a906001600160a01b03166108fc6100318362061ba861010c565b61003b9034610129565b6040518115909202916000818181858888f19350505050801561008257506001546040516001600160a01b03909116904780156108fc02916000818181858888f193505050505b6100b75760405162461bcd60e51b8152602060048201526002602482015261070760f41b604482015260640160405180910390fd5b604080513381523460208201527f927ab32c68a90a4cf460f95be1736eb7d1e77681f3320c240f853ca95ee2827f910160405180910390a1005b600080fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610123576101236100f6565b92915050565b81810381811115610123576101236100f656fea2646970667358221220b32b0dc2e6dc86e2b8f835baa168305cd0ebe5ae796c4eb4d0b8359ad8aa31ad64736f6c634300081300330000000000000000000000000613a212abc3ab26c5607aee08b4499aeb795205

Deployed Bytecode

0x6080604052366100f1573460000361001357005b6000543a906001600160a01b03166108fc6100318362061ba861010c565b61003b9034610129565b6040518115909202916000818181858888f19350505050801561008257506001546040516001600160a01b03909116904780156108fc02916000818181858888f193505050505b6100b75760405162461bcd60e51b8152602060048201526002602482015261070760f41b604482015260640160405180910390fd5b604080513381523460208201527f927ab32c68a90a4cf460f95be1736eb7d1e77681f3320c240f853ca95ee2827f910160405180910390a1005b600080fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610123576101236100f6565b92915050565b81810381811115610123576101236100f656fea2646970667358221220b32b0dc2e6dc86e2b8f835baa168305cd0ebe5ae796c4eb4d0b8359ad8aa31ad64736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000613a212abc3ab26c5607aee08b4499aeb795205

-----Decoded View---------------
Arg [0] : _account (address): 0x0613a212abc3aB26c5607aee08B4499AeB795205

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000613a212abc3ab26c5607aee08b4499aeb795205


Deployed Bytecode Sourcemap

1153:876:0:-:0;;;;;;1617:9;1628:1;1617:12;1613:25;;1153:876;1613:25;1723:16;1811:10;1771;;-1:-1:-1;;;;;1811:10:0;1803:57;1843:15;1771:10;1852:6;1843:15;:::i;:::-;1828:31;;:9;:31;:::i;:::-;1803:57;;;;;;;;;;;;;;;;;;;;;:104;;;;-1:-1:-1;1870:8:0;;1862:45;;-1:-1:-1;;;;;1870:8:0;;;;1885:21;1862:45;;;;;1870:8;1862:45;1870:8;1862:45;1885:21;1870:8;1862:45;;;;;;;1803:104;1795:118;;;;-1:-1:-1;;;1795:118:0;;654:2:1;1795:118:0;;;636:21:1;693:1;673:18;;;666:29;-1:-1:-1;;;711:18:1;;;704:32;753:18;;1795:118:0;;;;;;;;1978:40;;;1996:10;956:51:1;;2008:9:0;1038:2:1;1023:18;;1016:34;1978:40:0;;929:18:1;1978:40:0;;;;;;;1604:422;1153:876;;;;14:127:1;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:168;219:9;;;250;;267:15;;;261:22;;247:37;237:71;;288:18;;:::i;:::-;146:168;;;;:::o;319:128::-;386:9;;;407:11;;;404:37;;;421:18;;:::i

Swarm Source

ipfs://b32b0dc2e6dc86e2b8f835baa168305cd0ebe5ae796c4eb4d0b8359ad8aa31ad

Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.