tx · 4oXimHFTV6LVRfpfFgTVc5QTvLVgrgmJP5LeiCc7yENW 3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X: -0.01000000 Waves 2022.05.22 15:50 [2062901] smart account 3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X > SELF 0.00000000 Waves
{ "type": 13, "id": "4oXimHFTV6LVRfpfFgTVc5QTvLVgrgmJP5LeiCc7yENW", "fee": 1000000, "feeAssetId": null, "timestamp": 1653223755071, "version": 2, "chainId": 84, "sender": "3Mx1uXHEcEHWYUL8zRV8dgVaCTrw3Kdjg6X", "senderPublicKey": "7DRdJkCr5JgAyJLsUMLziE9ikak86Nwx7wG7iBySTcfT", "proofs": [ "4zZwU7ixaU4ZMD55FHd6kfJQ4Ab2b9reFXK2Cfumfk4kRZgaZvpfPYWzYtJu9GU6Q6KPrLwSKCpPFPE4nJ47Xtha" ], "script": "base64:AAIFAAAAAAAAABEIAhIDCgEBEgMKAQESAwoBAQAAAAQAAAAAEHZpcmVzTWFpbkFkZHJlc3MBAAAAGgFXXsGWGTDJokN4RmnWJtbx5rhD0L32TB64AAAAAARVU0ROAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAAEVVNEVAEAAAAgHpQHE1J2oSWV/chhqIJfEH/fOk8pu/yaRj9a/TZPn5EAAAAABFVTREMBAAAAIFIz2eGXiCbl4h/C/eqINLiHdqOMsYPvyGAcfgoSVCYlAAAAAwAAAAFpAQAAAAl1c2RuXzEwMDAAAAABAAAABmFtb3VudAQAAAAFYWRtaW4CAAAAIzNQM2VVS0tvWEFxMWIxd1BMR1Q2WWpyTTZ3U0w1bmNqTVB1AwkBAAAAAiE9AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAABWFkbWluCQAAAgAAAAECAAAAEW9ubHkgYWRtaW4gY2FuIGRvBAAAAANpbnYJAAP8AAAABAkBAAAAB0FkZHJlc3MAAAABBQAAABB2aXJlc01ha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mlsAwkAAAAAAAACBQAAAANpbnYFAAAAA2ludgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAABZl8qY", "height": 2062901, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 67GxVqiLcUg6CknBzSoouHXS3xwhoNYkcu1MMiw7K9WF Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let viresMainAddress = base58'3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT' | |
5 | + | ||
6 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
7 | + | ||
8 | + | let USDT = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ' | |
9 | + | ||
10 | + | let USDC = base58'6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ' | |
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func usdn_1000 (amount) = { | |
14 | + | let admin = "3P3eUKKoXAq1b1wPLGT6YjrM6wSL5ncjMPu" | |
15 | + | if ((toString(i.caller) != admin)) | |
16 | + | then throw("only admin can do") | |
17 | + | else { | |
18 | + | let inv = invoke(Address(viresMainAddress), "withdraw", [toBase58String(USDN), amount], nil) | |
19 | + | if ((inv == inv)) | |
20 | + | then nil | |
21 | + | else throw("Strict value is not equal to itself.") | |
22 | + | } | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | @Callable(i) | |
28 | + | func usdt_1000 (amount) = { | |
29 | + | let admin = "3P3eUKKoXAq1b1wPLGT6YjrM6wSL5ncjMPu" | |
30 | + | if ((toString(i.caller) != admin)) | |
31 | + | then throw("only admin can do") | |
32 | + | else { | |
33 | + | let inv = invoke(Address(viresMainAddress), "withdraw", [toBase58String(USDT), amount], nil) | |
34 | + | if ((inv == inv)) | |
35 | + | then nil | |
36 | + | else throw("Strict value is not equal to itself.") | |
37 | + | } | |
38 | + | } | |
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | @Callable(i) | |
43 | + | func usdc_1000 (amount) = { | |
44 | + | let admin = "3P3eUKKoXAq1b1wPLGT6YjrM6wSL5ncjMPu" | |
45 | + | if ((toString(i.caller) != admin)) | |
46 | + | then throw("only admin can do") | |
47 | + | else { | |
48 | + | let inv = invoke(Address(viresMainAddress), "withdraw", [toBase58String(USDC), amount], nil) | |
49 | + | if ((inv == inv)) | |
50 | + | then nil | |
51 | + | else throw("Strict value is not equal to itself.") | |
52 | + | } | |
53 | + | } | |
54 | + | ||
55 | + |
github/deemru/w8io/169f3d6 26.14 ms ◑