tx · rr6jZmPznQKKAccT35nDiQz8JTSPm2zJ3JmuJToRooh 3N65ziw5oaWWQHthPW5jzsh9VxjYxHwpv33: -0.01300000 Waves 2023.02.28 14:13 [2469478] smart account 3N65ziw5oaWWQHthPW5jzsh9VxjYxHwpv33 > SELF 0.00000000 Waves
{ "type": 13, "id": "rr6jZmPznQKKAccT35nDiQz8JTSPm2zJ3JmuJToRooh", "fee": 1300000, "feeAssetId": null, "timestamp": 1677582893997, "version": 2, "chainId": 84, "sender": "3N65ziw5oaWWQHthPW5jzsh9VxjYxHwpv33", "senderPublicKey": "5yoY2Atq5TS6YzXkDHGig1DJdaYnWskuGToqK61rQWQd", "proofs": [ "3zE1chK6aAbHEQfpmYUZXCFK4aePqybcY2SXRbHhsHcGVre5whbSp3XH8PNQrFoHxR9ExDXSw1N9Jm3fKH7TSET5" ], "script": "base64:BgIECAISAAoBE2tleUludmVzdFd4WHRuRGVsYXkAAhMlX19pbnZlc3RXeFh0bkRlbGF5ARdrZXlJbnZlc3RXeFh0bkFtb3VudFh0bgACFyVfX2ludmVzdFd4WHRuQW1vdW50WHRuAQxrZXlXeFh0blBvb2wAAgwlX193eFh0blBvb2wBDWtleVh0bkFzc2V0SWQAAg0lX194dG5Bc3NldElkAQprZXlXeFh0bkxwAAIKJV9fd3hYdG5McAEOa2V5THBUb0FkZHJlc3MAAg4lX19scFRvQWRkcmVzcwETa2V5TWFuYWdlclB1YmxpY0tleQACFCVzX19tYW5hZ2VyUHVibGljS2V5ARhrZXlJbnZlc3RXeFh0bkxhc3RIZWlnaHQAAhglX19pbnZlc3RXeFh0bkxhc3RIZWlnaHQBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQABAckbWF0Y2gwCQCiCAEJARNrZXlNYW5hZ2VyUHVibGljS2V5AAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXMFByRtYXRjaDAJANkEAQUBcwMJAAECBQckbWF0Y2gwAgRVbml0BQR1bml0CQACAQILTWF0Y2ggZXJyb3IBCHR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AzAgCCQEMSW50ZWdlckVudHJ5AgkBGGtleUludmVzdFd4WHRuTGFzdEhlaWdodAAFBmhlaWdodAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQERQGV4dHJOYXRpdmUoMTA2MikBCQERQGV4dHJOYXRpdmUoMTA1OCkBCQEOa2V5THBUb0FkZHJlc3MABQVscEdvdAUJbHBBc3NldElkBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXmPJo0t", "height": 2469478, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 3nJkUjxdAteAU7TY77b5Lc8PtxpHnu5wL4SA31XLrt22 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a () = "%__investWxXtnDelay" | |
5 | + | ||
6 | + | ||
7 | + | func b () = "%__investWxXtnAmountXtn" | |
8 | + | ||
9 | + | ||
10 | + | func c () = "%__wxXtnPool" | |
11 | + | ||
12 | + | ||
13 | + | func d () = "%__xtnAssetId" | |
14 | + | ||
15 | + | ||
16 | + | func e () = "%__wxXtnLp" | |
17 | + | ||
18 | + | ||
19 | + | func f () = "%__lpToAddress" | |
20 | + | ||
21 | + | ||
22 | + | func g () = "%s__managerPublicKey" | |
23 | + | ||
24 | + | ||
25 | + | func h () = "%__investWxXtnLastHeight" | |
26 | + | ||
27 | + | ||
28 | + | func i () = { | |
29 | + | let j = getString(g()) | |
30 | + | if ($isInstanceOf(j, "String")) | |
31 | + | then { | |
32 | + | let k = j | |
33 | + | fromBase58String(k) | |
34 | + | } | |
35 | + | else if ($isInstanceOf(j, "Unit")) | |
36 | + | then unit | |
37 | + | else throw("Match error") | |
38 | + | } | |
39 | + | ||
40 | + | ||
41 | + | func l (m) = throw(makeString(["investor.ride:", m], " ")) | |
42 | + | ||
43 | + | ||
44 | + | @Callable(n) | |
45 | + | func investWxXtn () = { | |
46 | + | let o = valueOrElse(getInteger(h()), 0) | |
47 | + | let p = getIntegerValue(a()) | |
48 | + | let q = [if ((height > (o + p))) | |
49 | + | then true | |
50 | + | else l("wait to invest")] | |
51 | + | if ((q == q)) | |
52 | + | then { | |
53 | + | let r = fromBase58String(getStringValue(e())) | |
54 | + | let s = assetBalance(this, r) | |
55 | + | if ((s == s)) | |
56 | + | then { | |
57 | + | let t = invoke(addressFromStringValue(getStringValue(c())), "putOneTkn", [0, false], [AttachedPayment(fromBase58String(getStringValue(d())), getIntegerValue(b()))]) | |
58 | + | if ((t == t)) | |
59 | + | then { | |
60 | + | let u = assetBalance(this, r) | |
61 | + | if ((u == u)) | |
62 | + | then { | |
63 | + | let v = (u - s) | |
64 | + | let w = if ((v == 0)) | |
65 | + | then l("lp to get is zero") | |
66 | + | else unit | |
67 | + | if ((w == w)) | |
68 | + | then [IntegerEntry(h(), height), ScriptTransfer(addressFromStringValue(getStringValue(f())), v, r)] | |
69 | + | else throw("Strict value is not equal to itself.") | |
70 | + | } | |
71 | + | else throw("Strict value is not equal to itself.") | |
72 | + | } | |
73 | + | else throw("Strict value is not equal to itself.") | |
74 | + | } | |
75 | + | else throw("Strict value is not equal to itself.") | |
76 | + | } | |
77 | + | else throw("Strict value is not equal to itself.") | |
78 | + | } | |
79 | + | ||
80 | + | ||
81 | + | @Verifier(x) | |
82 | + | func y () = { | |
83 | + | let z = { | |
84 | + | let j = i() | |
85 | + | if ($isInstanceOf(j, "ByteVector")) | |
86 | + | then { | |
87 | + | let A = j | |
88 | + | A | |
89 | + | } | |
90 | + | else if ($isInstanceOf(j, "Unit")) | |
91 | + | then x.senderPublicKey | |
92 | + | else throw("Match error") | |
93 | + | } | |
94 | + | sigVerify(x.bodyBytes, x.proofs[0], z) | |
95 | + | } | |
96 | + |
github/deemru/w8io/169f3d6 20.04 ms ◑