tx · 6xho7p1E1TdEiADkxerHqGWvPNBKjgVDy84XkwWbXJ6E 3N86fBeRNMYj4Lbc7po8PKtrXR2oLQXQB8a: -0.01000000 Waves 2024.03.29 14:42 [3039316] smart account 3N86fBeRNMYj4Lbc7po8PKtrXR2oLQXQB8a > SELF 0.00000000 Waves
{ "type": 13, "id": "6xho7p1E1TdEiADkxerHqGWvPNBKjgVDy84XkwWbXJ6E", "fee": 1000000, "feeAssetId": null, "timestamp": 1711712562579, "version": 2, "chainId": 84, "sender": "3N86fBeRNMYj4Lbc7po8PKtrXR2oLQXQB8a", "senderPublicKey": "4uUUD88FFMgtPjui9NEmEstYpUVQNPSLCQw5f8mYHmGz", "proofs": [ "j7HpNfEU8g8vF12eGKw1igg4zycdBgZYyDQpnQQLDmuP7YnnKKWSrzJ7E1hp7VVY2FNBPvMp5dePucZhxtSnhje" ], "script": "base64:BgIECAISAAIAEUFJX1RPS0VOX0FTU0VUX0lEASCT4XI4cQSbauiaYx8EJLdkU5csPrxmC4N0r2i7JI3iQgELd2hpdGVsaXN0ZWQBB2FkZHJlc3MEByRtYXRjaDAJAJsIAgUEdGhpcwkArAICAgp3aGl0ZWxpc3RfBQdhZGRyZXNzAwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EAWIFByRtYXRjaDAFAWIHAQFpAQNidXkABBFXQVZFU19VU0RUX09SQUNMRQkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04xV2pobUYzRXl1dHZydnRzZnNTTGJobWlMVThCYzFUb3kEFVdBVkVTX1VTRFRfT1JBQ0xFX0tFWQIXJXMlc19fcHJpY2VfX1dBVkVTLVVTRFQEDVVTRFRfQVNTRVRfSUQCLDk4RDNwa0t2ZnJYRW5YbVFxS0dXZ3RvR3ZWaDFhVGY0Q1BEdHRxRzljc3VtBA1VU0RDX0FTU0VUX0lEAiw5OEQzcGtLdmZyWEVuWG1RcUtHV2d0b0d2VmgxYVRmNENQRHR0cUc5Y3N1bQQMQkFJX0FTU0VUX0lEAixB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FJX0FTU0VUX0lEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5cZl9Ww==", "height": 3039316, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 58Ytg4pXNEQmAoVaJJ2rBvpHsdDNaZt7HePkNgx2uvy2 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1' | |
5 | + | ||
6 | + | func b (c) = { | |
7 | + | let d = getBoolean(this, ("whitelist_" + c)) | |
8 | + | if ($isInstanceOf(d, "Boolean")) | |
9 | + | then { | |
10 | + | let e = d | |
11 | + | e | |
12 | + | } | |
13 | + | else false | |
14 | + | } | |
15 | + | ||
16 | + | ||
17 | + | @Callable(f) | |
18 | + | func buy () = { | |
19 | + | let g = addressFromStringValue("3N1WjhmF3EyutvrvtsfsSLbhmiLU8Bc1Toy") | |
20 | + | let h = "%s%s__price__WAVES-USDT" | |
21 | + | let i = "98D3pkKvfrXEnXmQqKGWgtoGvVh1aTf4CPDttqG9csum" | |
22 | + | let j = "98D3pkKvfrXEnXmQqKGWgtoGvVh1aTf4CPDttqG9csum" | |
23 | + | let k = "AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1" | |
24 | + | let l = size(f.payments) | |
25 | + | let m = f.caller | |
26 | + | if (!(b(toString(m)))) | |
27 | + | then throw("Address not whitelisted!") | |
28 | + | else if ((l != 1)) | |
29 | + | then throw("Payment necessary!") | |
30 | + | else { | |
31 | + | let n = f.payments[0] | |
32 | + | let o = n.assetId | |
33 | + | let p = { | |
34 | + | let d = o | |
35 | + | if ($isInstanceOf(d, "ByteVector")) | |
36 | + | then { | |
37 | + | let e = d | |
38 | + | toBase58String(e) | |
39 | + | } | |
40 | + | else "" | |
41 | + | } | |
42 | + | let q = n.amount | |
43 | + | let r = if (!(isDefined(o))) | |
44 | + | then { | |
45 | + | let s = { | |
46 | + | let d = getInteger(g, h) | |
47 | + | if ($isInstanceOf(d, "Int")) | |
48 | + | then { | |
49 | + | let t = d | |
50 | + | t | |
51 | + | } | |
52 | + | else 0 | |
53 | + | } | |
54 | + | (fraction(q, s, 100000000) * 100) | |
55 | + | } | |
56 | + | else if ((p == i)) | |
57 | + | then (q * 100) | |
58 | + | else if ((p == j)) | |
59 | + | then (q * 100) | |
60 | + | else throw("payment necessary in Waves, USDC or USDT!") | |
61 | + | [ScriptTransfer(m, r, fromBase58String(k))] | |
62 | + | } | |
63 | + | } | |
64 | + | ||
65 | + | ||
66 | + | @Verifier(u) | |
67 | + | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
68 | + |
github/deemru/w8io/026f985 15.07 ms ◑