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