Contract 0x9b8f21a50511b6ffb304190072908a3756a9dc87

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x711f7fe8962eb08616163547074384ac0100a64e3ac37741a1eec8f7aa815a86Set Service Fee549962382023-01-23 20:24:274 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005228
0x3a974a8a873ea2318f3c66b4abae0c8b99a752538f5e920b18efd62e8af02fa3Set Service Fee549961972023-01-23 20:24:084 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x724fd1c57b8c0be2587908be3f9a3043cec9b04bf39ee31aa58c1468c8b81449Set Service Fee549961552023-01-23 20:23:494 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x6500abd04214730d5c8e7f7d3722bccbb9a50c1195489867e42ce5847aadd822Set Service Fee549961152023-01-23 20:23:334 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x43c59e1c0802cc74be3926f07b767fc1a4183ddbf5759695419582129d2413f6Set Service Fee549960682023-01-23 20:23:174 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x68e05144403cccebfdfb0b1adb934b47794c7ce6bcb9f6191a9a7ae0b47ffcd2Set Service Fee549959492023-01-23 20:22:394 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0xefd77eb2b7b7a4120a8bbab3872ca7c5ee9f0c87f9c9ff95781ae82fbd1de560Set Service Fee549958352023-01-23 20:21:564 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x2f6189928cbcabaa41e88560ac3f568ea630cf1b6c632937bb6b2554ca41c1aeSet Service Fee549957722023-01-23 20:21:324 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x3d47a4fc62d9ea5e46aab29385927e0055145ad77c2d691a2db4249b10f1a604Set Service Fee549956482023-01-23 20:20:534 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0xe4436a296d2ad473339c579fcbb6fad06218ed07f6389afa50293dc0bf9da645Set Service Fee549955852023-01-23 20:20:314 days 18 hrs ago0x322d58b9e75a6918f7e7849aee0ff09369977e08 IN  0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH0.00005203
0x23df25e4d0bbf22a4026334b4980185479948dcf8e68e916dd653c7dc7f4fbaa0x60806040123043292022-05-17 10:17:16256 days 4 hrs ago0x8f8c780dbc3ef64e86352a1198b58f98c8fa51a6 IN  Create: Discount0 ETH0.000860935734 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd26ee9972cf378783b30c82749df6605b7b916c768abadc7de34b7f066cd46cb561491982023-01-28 14:22:244 mins ago 0xe68295243b2d06f95d0b07b14f518fe96a226da3 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xe19f9bf07e2618d9a57ec9a0838aa64d6b072192ca41791820dbe7b9610a0a44561487432023-01-28 14:20:006 mins ago 0xe68295243b2d06f95d0b07b14f518fe96a226da3 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xc2bfeb50f98b48817dd45b1d5d2142031be24d7e60927023289504fcbef1cac3561457322023-01-28 14:03:5423 mins ago 0x9757acf3c4a56a029461e9a22126472860ffadf7 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x4cc468e6bb2f020fdf54ae46ff0e23148814ea306f2bf004ba4eb7d51ef65cf0561383712023-01-28 13:23:481 hr 3 mins ago 0x31fe3ce184ed934fbcec558ac4f732d0a7ddc8ee 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x84413f04b4a04e3ad90783c4d5c3880dd8cbd068733560f82e29bf69c63e3881561371272023-01-28 13:17:471 hr 9 mins ago 0x3316a97209356effecaaf4cada19a6c6522afe8b 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x8f64062a01429afd1b07b668d787d874de2c375a5022d19f9b5e032f7c7ff359561325282023-01-28 12:55:191 hr 31 mins ago 0x3316a97209356effecaaf4cada19a6c6522afe8b 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xa59952eac555f3b1a622ac37e0e8abc1ccd8ef78dd074991189b6306fea171bf561302902023-01-28 12:43:311 hr 43 mins ago 0xd9f74eb9110bdfb94334312c5a1052a364d85a86 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xa4c0d95b377763e6491fc5d8e18eccff8d634731b8c6cbc4d27b613836d00eff561300032023-01-28 12:41:501 hr 45 mins ago 0x29862404dc31503451820c543aa5c8e5fd3a8de5 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x8c7b363bab7312df0231f625d4c083321d27909a5f602de61741fe8641cdf65d561271822023-01-28 12:27:391 hr 59 mins ago 0x9c3d03af9a7eb23aaf6af11d929937561b104ec5 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x175a4e063fe2d7eb4499c7a5c7880c69a0f1beb00f97c2a22a0b5801a8a8f9a0561246072023-01-28 12:15:042 hrs 11 mins ago 0x395a8f334ce64254f28178ee3b3eef45e15e457c 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xf315c31183e4ad56bfd4b642aa4ecdc6d42234d2a62f145f84dfeb17f222fee0561242742023-01-28 12:13:202 hrs 13 mins ago 0x395a8f334ce64254f28178ee3b3eef45e15e457c 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xcf63eb675e771916efa20d56f5cbd2490c2621a21ef3d883e47c9134a0d0190b561240772023-01-28 12:12:172 hrs 14 mins ago 0x149441c01da01099be60870baa6a7deff1cd1db8 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x95c1e0490febe1afdca10cc10b56406bc4b5d64df1c3d7636697ea7c2bafc44f561136612023-01-28 11:16:373 hrs 10 mins ago 0x834393ce9b8c844bbdfd8894630c6e3694d3ec3e 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xb510b00f00af14dc03504e3654b9fdf54eedd082b1f7751e814c5f9b9710ffae561100192023-01-28 10:58:143 hrs 28 mins ago 0x56f0d041c9e35b29ee9f9cb5f8cd2920fab0acc0 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xb739587af7605ca3c6b0943792169ad48352393421acd1e6c6d2e54763ea624e561070522023-01-28 10:42:593 hrs 43 mins ago 0x548b41a3889ef8e251121a64810440f65b7295f8 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x68efeeb0c1d73cea5c8bed3ddcfa42a27e6f41fa0c28d295a45df96b830395fc561018112023-01-28 10:15:574 hrs 11 mins ago 0xb61182614b35e51c51ab041195593b6a4949a27e 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x9f418d704059ab8600cb86f848f626441051b62657d400bc51918ec3203aacad560960692023-01-28 9:45:064 hrs 41 mins ago 0x7f4aaad15b1baac4e7dde5ff1e9a51e57cded12c 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x9d8773416d88d690dddc71d77513866b239ab165857b2301c830fb88c75028dc560905502023-01-28 9:16:165 hrs 10 mins ago 0x8be04388391946766c8e060be7e3ad389d4af4dc 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xa9b95ed6ee3674a44a53c7acb6379b14876966555743f6847bea5d2ae42fbdcc560826972023-01-28 8:36:235 hrs 50 mins ago 0xcd710e1e08dc93f189acbd9d660aac37896b9a7a 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xee34cd9fefb0110544ae785bda8e1bf241f36b157b81127363222ed06fbcae41560821572023-01-28 8:33:365 hrs 53 mins ago 0xcd710e1e08dc93f189acbd9d660aac37896b9a7a 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xbe89a88bde87f592fa1493dea560deec61564121d8453b717d46d3208cc02d88560799462023-01-28 8:22:596 hrs 3 mins ago 0xcd650534530786ab849d236d42b5d3404c57accc 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xde22e89c23c8e0033f417f79f83d94c400eec2a15790c8378d03b5b252290e63560784482023-01-28 8:15:516 hrs 11 mins ago 0x8e3dd7265a2ff69050cdcfdb9042d7dff642b5f6 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x9071c8a7d538ed46b4c39e5e53d16b7ed097b9251f10c2a7e6ab15b65dc73d1c560706222023-01-28 7:36:376 hrs 50 mins ago 0xacb50694405fe4e2bafc0ed79636b52db1dd92c5 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0xf22a1dc0efc8218a6862c9de2fa1986817e0841a6dbc2e888ec1a49e3b840fc8560644612023-01-28 7:06:257 hrs 20 mins ago 0x3d063a5c8aa93aae41d86b408fa0e70ba97373a4 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
0x4769bef60a36651b53419422ea6d1ebd8feefb838ba13f0d60cdd66f6553b394560586582023-01-28 6:38:137 hrs 48 mins ago 0x5b655e577a784a3299632dc59b8bafe252522905 0x9b8f21a50511b6ffb304190072908a3756a9dc870 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Discount

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Arbiscan on 2022-05-17
*/

// SPDX-License-Identifier: MIT
pragma solidity =0.8.10;

contract Discount {
    address public owner;
    mapping(address => CustomServiceFee) public serviceFees;

    uint256 constant MAX_SERVICE_FEE = 400;

    error OnlyOwner();
    error WrongFeeValue();

    struct CustomServiceFee {
        bool active;
        uint256 amount;
    }

    constructor() {
        owner = 0x322d58b9E75a6918f7e7849AEe0fF09369977e08;
    }

    function isCustomFeeSet(address _user) public view returns (bool) {
        return serviceFees[_user].active;
    }

    function getCustomServiceFee(address _user) public view returns (uint256) {
        return serviceFees[_user].amount;
    }

    function setServiceFee(address _user, uint256 _fee) public {
        if (msg.sender != owner){
            revert OnlyOwner();
        }

        if (!(_fee >= MAX_SERVICE_FEE || _fee == 0)){
            revert WrongFeeValue();
        }

        serviceFees[_user] = CustomServiceFee({active: true, amount: _fee});
    }

    function disableServiceFee(address _user) public {
        if (msg.sender != owner){
            revert OnlyOwner();
        }

        serviceFees[_user] = CustomServiceFee({active: false, amount: 0});
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[],"name":"WrongFeeValue","type":"error"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"disableServiceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getCustomServiceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isCustomFeeSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"serviceFees","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setServiceFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b03191673322d58b9e75a6918f7e7849aee0ff09369977e08179055610320806100466000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630938ee40146100675780636eeb5431146100b05780638da5cb5b146100eb578063b371deac14610116578063d0173c3314610152578063ef2fa16914610167575b600080fd5b61009461007536600461029e565b6001602081905260009182526040909120805491015460ff9091169082565b6040805192151583526020830191909152015b60405180910390f35b6100dd6100be36600461029e565b6001600160a01b03166000908152600160208190526040909120015490565b6040519081526020016100a7565b6000546100fe906001600160a01b031681565b6040516001600160a01b0390911681526020016100a7565b61014261012436600461029e565b6001600160a01b031660009081526001602052604090205460ff1690565b60405190151581526020016100a7565b61016561016036600461029e565b61017a565b005b6101656101753660046102c0565b6101e7565b6000546001600160a01b031633146101a557604051635fc483c560e01b815260040160405180910390fd5b604080518082018252600080825260208083018281526001600160a01b039590951682526001908190529290209051815460ff19169015151781559151910155565b6000546001600160a01b0316331461021257604051635fc483c560e01b815260040160405180910390fd5b61019081101580610221575080155b61023e5760405163fccb470d60e01b815260040160405180910390fd5b604080518082018252600180825260208083019485526001600160a01b0395909516600090815294819052919093209251835460ff19169015151783559051910155565b80356001600160a01b038116811461029957600080fd5b919050565b6000602082840312156102b057600080fd5b6102b982610282565b9392505050565b600080604083850312156102d357600080fd5b6102dc83610282565b94602093909301359350505056fea26469706673582212203eabfa89de49b210fc66e006dd84ce7ff52c9713211be8aaabd59c88ba226e1a64736f6c634300080a0033

Deployed ByteCode Sourcemap

61:1209:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113:55;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;576:14:1;;569:22;551:41;;623:2;608:18;;601:34;;;;524:18;113:55:0;;;;;;;;581:125;;;;;;:::i;:::-;-1:-1:-1;;;;;673:18:0;646:7;673:18;;;:11;:18;;;;;;;;:25;;;581:125;;;;792:25:1;;;780:2;765:18;581:125:0;646:177:1;86:20:0;;;;;-1:-1:-1;;;;;86:20:0;;;;;;-1:-1:-1;;;;;992:32:1;;;974:51;;962:2;947:18;86:20:0;828:203:1;456:117:0;;;;;;:::i;:::-;-1:-1:-1;;;;;540:18:0;516:4;540:18;;;:11;:18;;;;;:25;;;;456:117;;;;1201:14:1;;1194:22;1176:41;;1164:2;1149:18;456:117:0;1036:187:1;1053:214:0;;;;;;:::i;:::-;;:::i;:::-;;714:331;;;;;;:::i;:::-;;:::i;1053:214::-;1131:5;;-1:-1:-1;;;;;1131:5:0;1117:10;:19;1113:69;;1159:11;;-1:-1:-1;;;1159:11:0;;;;;;;;;;;1113:69;1215:44;;;;;;;;-1:-1:-1;1215:44:0;;;;;;;;;;-1:-1:-1;;;;;1194:18:0;;;;;;1215:44;1194:18;;;;;;;:65;;;;-1:-1:-1;;1194:65:0;;;;;;;;;;;;1053:214::o;714:331::-;802:5;;-1:-1:-1;;;;;802:5:0;788:10;:19;784:69;;830:11;;-1:-1:-1;;;830:11:0;;;;;;;;;;;784:69;212:3;871:4;:23;;:36;;;-1:-1:-1;898:9:0;;871:36;865:93;;931:15;;-1:-1:-1;;;931:15:0;;;;;;;;;;;865:93;991:46;;;;;;;;1017:4;991:46;;;;;;;;;;-1:-1:-1;;;;;970:18:0;;;;-1:-1:-1;970:18:0;;;;;;;;;;;:67;;;;-1:-1:-1;;970:67:0;;;;;;;;;;;;714:331::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;:::-;333:39;192:186;-1:-1:-1;;;192:186:1:o;1228:254::-;1296:6;1304;1357:2;1345:9;1336:7;1332:23;1328:32;1325:52;;;1373:1;1370;1363:12;1325:52;1396:29;1415:9;1396:29;:::i;:::-;1386:39;1472:2;1457:18;;;;1444:32;;-1:-1:-1;;;1228:254:1:o

Metadata Hash

3eabfa89de49b210fc66e006dd84ce7ff52c9713211be8aaabd59c88ba226e1a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.