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