BCD

Tezos Contract Explorer
Search Networks Deploy
  • Home
  • /
  • Mainnet
  • /
  • Tezos Domains TLDRegistrar Withdraw
operations (3.01K)Storage Code Interact Tokens Metadata Fork Statistics Details
Latest
​x
44
 
1
parameter (or
2
            (lambda %proxy_admin_update
3
              (pair (pair (address %contract) (big_map %metadata string bytes))
4
                    (address %owner))
5
              (pair (list operation)
6
                    (pair (pair (address %contract) (big_map %metadata string bytes))
7
                          (address %owner))))
8
            (address %withdraw));
9
storage (pair (pair (address %contract) (big_map %metadata string bytes))
10
              (address %owner));
11
code { UNPAIR ;
12
       IF_LEFT
13
         { SWAP ;
14
           DUP ;
15
           DUG 2 ;
16
           CDR ;
17
           SENDER ;
18
           COMPARE ;
19
           EQ ;
20
           IF { SWAP ; EXEC } { DROP 2 ; PUSH string "NOT_AUTHORIZED" ; FAILWITH } }
21
         { SWAP ;
22
           DUP ;
23
           CAR ;
24
           CAR ;
25
           DIG 2 ;
26
           PACK ;
27
           PUSH string "Withdraw" ;
28
           DIG 2 ;
29
           CONTRACT %execute (pair (string %action_name)
30
                                   (pair (bytes %payload) (address %original_sender))) ;
31
           IF_NONE
32
             { DROP 2 ; PUSH string "INVALID_CONTRACT" ; FAILWITH }
33
             { SENDER ;
34
               DIG 3 ;
35
               PAIR ;
36
               DIG 2 ;
37
               PAIR ;
38
               NIL operation ;
39
               DIG 2 ;
40
               AMOUNT ;
41
               DIG 3 ;
42
               TRANSFER_TOKENS ;
43
               CONS } ;
44
           PAIR } }