Address Contract Partially Verified
Address
0x1106cE29E400C7d2aa7c283dAa56E789B3D4f4EF
Balance
0 ETH
Nonce
1
Code Size
783 bytes
Creator
0xc932b3a3...93Ce at tx 0x755088a4...7113fc
Indexed Transactions
0
Contract Bytecode
783 bytes
0x608060405260043610610049575f3560e01c80630f2a4f791461004d5780631a59979d1461006e5780632d666e38146100c15780635a1609c7146100e357806395a078e8146100f6575b5f80fd5b348015610058575f80fd5b5061006c610067366004610264565b610147565b005b348015610079575f80fd5b506100a3610088366004610292565b60016020525f908152604090205467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b3480156100cc575f80fd5b506100d55f5481565b6040519081526020016100b8565b61006c6100f1366004610292565b6101ab565b348015610101575f80fd5b50610137610110366004610292565b6001600160a01b03165f9081526001602052604090205467ffffffffffffffff1642111590565b60405190151581526020016100b8565b3373c932b3a342658a2d3df79e4661f29dff6d7e93ce146101a75760405162461bcd60e51b81526020600482015260156024820152742737ba103a3432903a37b6361037b832b930ba37b960591b60448201526064015b60405180910390fd5b5f55565b5f543410156101f45760405162461bcd60e51b8152602060048201526015602482015274125b98dbdc9c9958dd081d1bdb1b08185b5bdd5b9d605a1b604482015260640161019e565b6040516001600160a01b038216903480156108fc02915f818181858888f19350505050158015610226573d5f803e3d5ffd5b5061023342610e106102b4565b335f908152600160205260409020805467ffffffffffffffff191667ffffffffffffffff9290921691909117905550565b5f60208284031215610274575f80fd5b5035919050565b6001600160a01b038116811461028f575f80fd5b50565b5f602082840312156102a2575f80fd5b81356102ad8161027b565b9392505050565b808201808211156102d357634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220aa93429b6cca6a5e241f69ef08f82ff2cc04331869923d7b744a98655e72ae6164736f6c63430008180033
Verified Source Code Partial Match
Compiler: v0.8.24+commit.e11b9ed9
EVM: shanghai
Optimization: Yes (200 runs)
TollBooth.sol 23 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract TollBooth {
address constant tollOperator = 0xc932b3a342658A2d3dF79E4661f29DfF6D7e93Ce;
uint256 public tollAmount = 0.003 ether;
mapping(address => uint64) public accessPass;
function payToll(address payable tollGate) external payable {
require(msg.value >= tollAmount, "Incorrect toll amount");
tollGate.transfer(msg.value);
accessPass[msg.sender] = uint64(block.timestamp + 1 hours);
}
function hasAccess(address traveler) external view returns (bool) {
return block.timestamp <= accessPass[traveler];
}
function adjustToll(uint256 newAmount) external {
require(msg.sender == tollOperator, "Not the toll operator");
tollAmount = newAmount;
}
}
Read Contract
accessPass 0x1a59979d → uint64
hasAccess 0x95a078e8 → bool
tollAmount 0x2d666e38 → uint256
Write Contract 2 functions
These functions modify contract state and require a wallet transaction to execute.
adjustToll 0x0f2a4f79
uint256 newAmount
payToll 0x5a1609c7
address tollGate
Recent Transactions
No transactions found for this address