1 tx
42 calls
constructor
constructor(address charityAddress_)
functions
charityAddress
viewfunction charityAddress() view returns (address)
charityBasisPoints
viewfunction charityBasisPoints() view returns (uint256)
owner
viewfunction owner() view returns (address)
pay
payablefunction pay(address paymentToken, uint256 amount) payable
renounceOwnership
nonpayablefunction renounceOwnership()
setCharityAddress
nonpayablefunction setCharityAddress(address newCharityAddress)
setCharityBasisPoints
nonpayablefunction setCharityBasisPoints(uint256 newCharityBasisPoints)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
nonpayablefunction withdraw(address paymentToken, uint256 amount)
events
CharityBasisPointsUpdated
event CharityBasisPointsUpdated(uint256 newCharityBasisPoints)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PaymentReceived
event PaymentReceived(address indexed payer, address indexed paymentToken, uint256 amount, uint256 paidForCharity)
errors
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x60803461012557601f61085e38819003918201601f19168301916001600160401b038311848410176101295780849260209460405283398101031261012557516001600160a01b03811690819003610125573315610112575f8054336001600160a01b03198216811783556040519290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3600180555f60035581156100d05750600280546001600160a01b031916919091179055604051610720908161013e8239f35b62461bcd60e51b815260206004820152601760248201527f496e76616c6964206368617269747920616464726573730000000000000000006044820152606490fd5b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f3560e01c80630c9be46d14610503578063238a3c61146104e6578063715018a61461048f5780638708f787146103f55780638da5cb5b146103ce578063afcf2fc4146103a6578063c4076876146101a4578063f2fde38b1461011f5763f3fef3a31461007c575f80fd5b3461011b57604036600319011261011b57610095610594565b602435906100a161061f565b6001600160a01b03168061010d57505f80808093335af16100c06105e0565b50156100c857005b60405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606490fd5b90610119913390610645565b005b5f80fd5b3461011b57602036600319011261011b57610138610594565b61014061061f565b6001600160a01b03168015610191575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b604036600319011261011b576101b8610594565b602435600260015414610397576002600155801561035357600354808202908282040361033f576001600160a01b03909216916127109004826102e25781340361029d5780610239575b60405191825260208201527f2d373585adc380c8714693a2c7b2009a1c53eef8fd1c092cc0b2cfe18f6cf9be60403392a360018055005b5f8080808460018060a01b03600254165af16102536105e0565b506102025760405162461bcd60e51b815260206004820152601f60248201527f4661696c656420746f2073656e6420457468657220746f2063686172697479006044820152606490fd5b60405162461bcd60e51b815260206004820152601b60248201527f496e636f727265637420457468657220616d6f756e742073656e7400000000006044820152606490fd5b61031c6040516323b872dd60e01b6020820152336024820152306044820152836064820152606481526103166084826105aa565b84610687565b80156102025760025461033a9082906001600160a01b031685610645565b610202565b634e487b7160e01b5f52601160045260245ffd5b606460405162461bcd60e51b815260206004820152602060248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f6044820152fd5b633ee5aeb560e01b5f5260045ffd5b3461011b575f36600319011261011b576002546040516001600160a01b039091168152602090f35b3461011b575f36600319011261011b575f546040516001600160a01b039091168152602090f35b3461011b57602036600319011261011b5760043561041161061f565b612710811161044b576020817f822a42a0b219a7e96b625cc320e6eba70ca0a95829a3f7ac726971059296db8892600355604051908152a1005b606460405162461bcd60e51b815260206004820152602060248201527f426173697320706f696e74732063616e6e6f74206578636565642031303030306044820152fd5b3461011b575f36600319011261011b576104a761061f565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461011b575f36600319011261011b576020600354604051908152f35b3461011b57602036600319011261011b5761051c610594565b61052461061f565b6001600160a01b0316801561054f576bffffffffffffffffffffffff60a01b60025416176002555f80f35b60405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206368617269747920616464726573730000000000000000006044820152606490fd5b600435906001600160a01b038216820361011b57565b90601f8019910116810190811067ffffffffffffffff8211176105cc57604052565b634e487b7160e01b5f52604160045260245ffd5b3d1561061a573d9067ffffffffffffffff82116105cc576040519161060f601f8201601f1916602001846105aa565b82523d5f602084013e565b606090565b5f546001600160a01b0316330361063257565b63118cdaa760e01b5f523360045260245ffd5b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152610685916106806064836105aa565b610687565b565b905f602091828151910182855af1156106df575f513d6106d657506001600160a01b0381163b155b6106b65750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b600114156106af565b6040513d5f823e3d90fdfea2646970667358221220c9d8c69b0d7b808021d176427d140dadf8f7709be3a9a1b589432272331c5d7564736f6c634300081c0033000000000000000000000000ca26cd8d6e4a1d703df9fe6dd9be1e03a703cb80