BNB Chain

0x27af47fa5681e4c4ef5ffdcff47eb0dd3bac6a8c

Decompiled Solidity recovered from this contract's runtime bytecode. Best-effort reconstruction — confirm behaviour against on-chain state.

Decompilation outputBNB Chain · 0x27af47fa…3bac6a8c4.1 KB2.3 s
Share
296 lines · Click a variable or keyword to highlight its references · Click a line number to copy its link; Shift-click to copy a block link
//decompiled by exvvul decompiler tool contact@exvul.com https://x.com/exvulsec// SPDX-License-Identifier: MIT  >=0.8.0;  {      ; // STORAGE[0x0]      ; // STORAGE[0x1]      ; // STORAGE[0x2]     ; // STORAGE[0x3]    ( => )  ; // STORAGE[0x5]    ( => )  ; // STORAGE[0x6]    ( => )  ; // STORAGE[0x7]    ( => )  ; // STORAGE[0x8]         ( ,  );     ( )   {         ("memory-safe") {            (0x00, (224, 0x4e487b71))            (0x04, )            (0x00, 0x24)        }    }    ()   {        // Synthetic compatibility routes preserve original selectors for unresolved names.         ((.. >= 4) && (. == 0x6879af85)) {            // Route to Unknown_6879af85() after replacing only msg.sig.            ((0x296e278f));            ;        }         ((.. >= 4) && (. == 0x7c98f513)) {            // Route to Unknown_7c98f513() after replacing only msg.sig.            ((0x1ec6104a));            ;        }         ((.. >= 4) && (. == 0xfdc37ae3)) {            // Route to Unknown_fdc37ae3(uint256,uint256) after replacing only msg.sig.            ((0xa102e464));            ;        }        ();    }             ()    () {        ( ,   ) = .(); // staticcall        ();         ;         =  + ((. + 0x1f) & (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0));        (!((( + .) - ) < 0x20));         .;    }         ( )   {         ;         = 0x40 + ;         (. == ) {             = ;        }  {            (0 < ., "\x00\x00\x00\x00\x00\x00");              = 0x20;             () {                 ( >= .) {                    ;                }                 = 0x20 + ;            }            ("018001");        }    }         ()   {         ;         = 0x40 + ;         (. == ) {             (, (0));             = (0);        }  {              = 0;             () {                 (!( < .)) {                    ;                }                 = 0x20 + ;            }            ("\x00\x00\x00\x00\x00\x00");        }    }         ()    () {         . - ((. - 0x6a28a900) % 0x015180);    }         ( ,  ,  ,  ,  ,   )   {         (. > 0xffffffffffffffff) (65);         ;         ((( + ((0x3f + (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0 & (. + 0x1f))) & (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0))) < ) | (( + ((0x3f + (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0 & (. + 0x1f))) & (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0))) > 0xffffffffffffffff)) (65);         =  + ((0x3f + (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0 & (. + 0x1f))) & (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0));        (!(((0x04 + ) +  + 0x20) > ..));         ( > 0xffffffffffffffff) (65);         =  + (0x20 + (0x20 * ));          = ;         ( != 0x0) {             = ( * 0x20) + (0x20 + );        }          = 0;         () {             ( >= ) {                ;            }             (!(( >> 0xf8) > 0x60)) {                 (( >> 0xf8) > 0x42) {                    ;                }                 (!( < .)) (50);            }  {                 (!( < .)) (50);            }             = 0x01 + ;        }         ((. / 0x02) > 0xffffffffffffffff) (65);    }         ()    ( ) {          = 0;         ;         () {             = 0x40 + ;             (!( < .)) {                ;            }             = 0x20 + ;        }         .(0x20, ., );    }         ( )   {         (. == ) {             = 0x40 + ;             ( != (0)) {                 (, );                 = ;            }  {                  = 0;                 () {                     (!( < .)) {                        ;                    }                     = 0x20 + ;                }                ("\x00\x00\x00\x00\x00\x00");            }        }  {              = 0;             () {                 (!( < .)) {                    ;                }                 = 0x20 + ;            }            ("\x00\x00\x00\x00\x00\x00");        }    }         ()    ( ) {          = 0;         ;         () {             = 0x40 + ;             (!( < .)) {                ;            }             = 0x20 + ;        }         .(0x20, ., );    }         ( ,  )    () {        ( ,   ) = ( / 0x01).(); // staticcall        ();         ;         =  + ((. + 0x1f) & (0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0));        (!((( + .) - ) < 0x20));         (0x0 != ) {            (0xde0b6b3a7640000 *  /  == 0xde0b6b3a7640000, "SafeMath: multiplication overflow");             = 0x40 + ;             ( != 0x0) {                 ( == 0x0) {                     (0x0de0b6b3a7640000 * ) / .;                }  {                      = 0x64 * ((0x0de0b6b3a7640000 * ) / .);                      = 0x64 * ((0x0de0b6b3a7640000 * ) / .);                     (0x0 != 0xde0b6b3a7640000 *  / ) {                        (0x64 * (0xde0b6b3a7640000 *  / ) / (0xde0b6b3a7640000 *  / ) == 0x64, "SafeMath: multiplication overflow");                    }  {                         = 0x40 + ;                         = 0;                         = 0;                    }                     ( != 0x0) {                          / ;                    }  {                          = 0;                         () {                             (!( < .)) {                                ;                            }                             = 0x20 + ;                        }                        ("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00");                    }                }            }  {                  = 0;                 () {                     (!( < .)) {                        ;                    }                     = 0x20 + ;                }                ("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00");            }        }  {             = 0x40 + ;             ( != 0x0) {                 ( == 0x0) {                     0 / .;                }  {                      = 0x64 * (0 / .);                      = 0x64 * (0 / .);                     (0x0 != 0x0 / ) {                        (0x64 * (0x0 / ) / (0x0 / ) == 0x64, "SafeMath: multiplication overflow");                    }  {                         = 0x40 + ;                         = 0;                         = 0;                    }                     ( != 0x0) {                          / ;                    }  {                          = 0;                         () {                             (!( < .)) {                                ;                            }                             = 0x20 + ;                        }                        ("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00");                    }                }            }  {                  = 0;                 () {                     (!( < .)) {                        ;                    }                     = 0x20 + ;                }                ("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00");            }        }    }         ( )  {         {              := (0x40)            (, 0, ())            (, (((), 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff), (224, (, 0xffffffff))))              := ((), (), , (), 0, 0)              := ()            (, 0, )                          0 { (, ) }             { (, ) }        }    }        // Note: This selector table is synthetic and is not part of the original Solidity source.    // It records the recovered selector-to-signature mapping without executable behavior.        // 0x275da030 => unresolved_275da030(address)    // 0x6879af85 => Unknown_6879af85()    // 0x6c19e783 => setSigner(address)    // 0x70ec667a => unresolved_70ec667a(bytes32)    // 0x715018a6 => renounceOwnership()    // 0x7c98f513 => Unknown_7c98f513()    // 0x7e41aae1 => buy(uint256,uint256,uint256,uint256,uint256,string)    // 0x860d248a => CANNOT_TRANSFER_TO_ZERO_ADDRESS()    // 0x8c49b367 => unresolved_8c49b367(bytes32)    // 0x8da5cb5b => owner()    // 0xad30d831 => unresolved_ad30d831()    // 0xbe3601f8 => _usdt()    // 0xc8599f3c => unresolved_c8599f3c(bytes32)    // 0xf2fde38b => transferOwnership(address)    // 0xf3fe3bc3 => NOT_CURRENT_OWNER()    // 0xfdc37ae3 => Unknown_fdc37ae3(uint256,uint256)}