2 txs
1.7k calls
constructor
constructor(uint256 _staticGas, uint256 _maxGasPrice)
functions
isAuthorized
viewfunction isAuthorized(address) view returns (bool)
maxGasPrice
viewfunction maxGasPrice() view returns (uint256)
owner
viewfunction owner() view returns (address)
staticGas
viewfunction staticGas() view returns (uint256)
authorize
nonpayablefunction authorize(address _contract)
refund
nonpayablefunction refund(uint256 gasSpent, address receiver)
renounceOwnership
nonpayablefunction renounceOwnership()
setMaxGasPrice
nonpayablefunction setMaxGasPrice(uint256 _maxGasPrice)
setStaticGas
nonpayablefunction setStaticGas(uint256 _staticGas)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
unauthorize
nonpayablefunction unauthorize(address _contract)
withdraw
nonpayablefunction withdraw(uint256 amount, address receiver)
withdrawAll
nonpayablefunction withdrawAll(address receiver)
events
AuthorizedContract
event AuthorizedContract(address thirdPartyContract)
FundsWithdrawn
event FundsWithdrawn(uint256 withdrawnAmount, address receiver)
MaxGasPriceUpdated
event MaxGasPriceUpdated(uint256 newMaxGasPrice)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SendingEtherFailed
event SendingEtherFailed(uint256 refundAmount, address receiver)
StaticGasUpdated
event StaticGasUpdated(uint256 newStaticGas)
UnauthorizedContract
event UnauthorizedContract(address thirdPartyContract)
errors
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
creation bytecode
0x608060405234801561001057600080fd5b506040516109e53803806109e583398101604081905261002f916100c1565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610071565b50600180556003919091556004556100e5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100d457600080fd5b505080516020909101519092909150565b6108f1806100f46000396000f3fe6080604052600436106100c55760003560e01c8063b6a5d7de1161007f578063f0b37c0411610059578063f0b37c04146101ef578063f2fde38b1461020f578063fa09e6301461022f578063fe9fbb801461024f57600080fd5b8063b6a5d7de14610199578063d2fa635e146101b9578063e25b5345146101d957600080fd5b8062f714ce146100d15780633de39c11146100f35780633e2174041461011c578063715018a61461013c5780637ad226dc146101515780638da5cb5b1461017157600080fd5b366100cc57005b600080fd5b3480156100dd57600080fd5b506100f16100ec3660046107cd565b61028f565b005b3480156100ff57600080fd5b5061010960045481565b6040519081526020015b60405180910390f35b34801561012857600080fd5b506100f16101373660046107f9565b6103f2565b34801561014857600080fd5b506100f1610436565b34801561015d57600080fd5b506100f161016c3660046107cd565b61044a565b34801561017d57600080fd5b506000546040516001600160a01b039091168152602001610113565b3480156101a557600080fd5b506100f16101b4366004610812565b6105c8565b3480156101c557600080fd5b506100f16101d43660046107f9565b610624565b3480156101e557600080fd5b5061010960035481565b3480156101fb57600080fd5b506100f161020a366004610812565b610661565b34801561021b57600080fd5b506100f161022a366004610812565b6106ba565b34801561023b57600080fd5b506100f161024a366004610812565b6106f8565b34801561025b57600080fd5b5061027f61026a366004610812565b60026020526000908152604090205460ff1681565b6040519015158152602001610113565b61029761070a565b814710156102ec5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e636500000060448201526064015b60405180910390fd5b6001600160a01b0381166103125760405162461bcd60e51b81526004016102e390610834565b604080518381526001600160a01b03831660208201527f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea910160405180910390a16000816001600160a01b03168360405160006040518083038185875af1925050503d80600081146103a0576040519150601f19603f3d011682016040523d82523d6000602084013e6103a5565b606091505b50509050806103ed5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102e3565b505050565b6103fa61070a565b60038190556040518181527fa86b6e9a406df021f05f513a796a1d5bea0bd3e18fe1d3f6082a3cccfc898d14906020015b60405180910390a150565b61043e61070a565b6104486000610737565b565b610452610787565b3360009081526002602052604090205460ff166104c15760405162461bcd60e51b815260206004820152602760248201527f436f6e7472616374206973206e6f7420617574686f72697a656420666f722061604482015266081c99599d5b9960ca1b60648201526084016102e3565b6001600160a01b0381166104e75760405162461bcd60e51b81526004016102e390610834565b60006004543a106104fa576004546104fc565b3a5b90506000816003548561050f919061088b565b61051991906108a4565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114610568576040519150601f19603f3d011682016040523d82523d6000602084013e61056d565b606091505b50509050806105b857604080518381526001600160a01b03861660208201527fd955712c3ae4c3c40451db84ea0c4531c61cc0ea75c13fe9168ae0e07d71e050910160405180910390a15b5050506105c460018055565b5050565b6105d061070a565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f2c74592fddad593c2c4403101ce9b30930711ab87571268ddd1e1989ee1d7917910161042b565b61062c61070a565b60048190556040518181527fa7a07f821dfdfca8e4baa9ccc4bbe7b782baac5946918bd19f1c9c761db414109060200161042b565b61066961070a565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527fe195aa139c7c69ba98f719c94aecd784e12fabc0789ef81335150078bc087317910161042b565b6106c261070a565b6001600160a01b0381166106ec57604051631e4fbdf760e01b8152600060048201526024016102e3565b6106f581610737565b50565b61070061070a565b6106f5478261028f565b6000546001600160a01b031633146104485760405163118cdaa760e01b81523360048201526024016102e3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6002600154036107aa57604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b80356001600160a01b03811681146107c857600080fd5b919050565b600080604083850312156107e057600080fd5b823591506107f0602084016107b1565b90509250929050565b60006020828403121561080b57600080fd5b5035919050565b60006020828403121561082457600080fd5b61082d826107b1565b9392505050565b60208082526021908201527f5265636569766572277320616464726573732063616e6e6f74206265207a65726040820152606f60f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561089e5761089e610875565b92915050565b808202811582820484141761089e5761089e61087556fea2646970667358221220dd7f4dd9a16eff391b5b7bbd7c0a8a2b43ccec8ac93656aef483a77e3eeb1d2e64736f6c634300081700330000000000000000000000000000000000000000000000000000000000009f60000000000000000000000000000000000000000000000000000000199c82cc00