tx · AyvHf53oAhd9xGmjEpdmTPbpRPDdc5VkPoxrs5NMKyvo 3MvXnAcEtL9x3i499UcvTQZPufrT5ZZUEd5: -0.01300000 Waves 2022.09.12 17:24 [2226003] smart account 3MvXnAcEtL9x3i499UcvTQZPufrT5ZZUEd5 > SELF 0.00000000 Waves
{ "type": 13, "id": "AyvHf53oAhd9xGmjEpdmTPbpRPDdc5VkPoxrs5NMKyvo", "fee": 1300000, "feeAssetId": null, "timestamp": 1662992757619, "version": 1, "sender": "3MvXnAcEtL9x3i499UcvTQZPufrT5ZZUEd5", "senderPublicKey": "GSAhb4fdky75LiCZ4p4DDK4rmWpmsgGBg1ZVdtPfmRES", "proofs": [ "23LQ58Px8DsL2FV6vDyH6KXnS3ZJ3agBSKSBLi8r9k7csQr3docmS4UFvh9dNG3EBvFQbCw2h6S4syuvZHRLSox2" ], "script": "base64:BgImCAISCgoICAgBAQEBAQESAwoBCBIECgIICBIFCgMICAESBAoCCAgPARNrZXlNYW5hZ2VyUHVibGljS2V5AAIUJXNfX21hbmFnZXJQdWJsaWNLZXkBF2NvbGxlY3RXaXRoZHJhd0RlbGF5S2V5AgZhc3NldEEGYXNzZXRCCQC5CQIJAMwIAgIVJXMlcyVzX193aXRoZHJhd0RlbGF5CQDMCAIFBmFzc2V0QQkAzAgCBQZhc3NldEIFA25pbAICX18BHGNvbGxlY3REZXBvc2l0RmVlUGVybWlsbGVLZXkCBmFzc2V0QQZhc3NldEIJALkJAgkAzAgCAholcyVzJXNfX2RlcG9zaXRGZWVQZXJtaWxsZQkAzAgCBQZhc3NldEEJAMwIAgUGYXNzZXRCBQNuaWwCAl9fAR1jb2xsZWN0V2l0aGRyYXdGZWVQZXJtaWxsZUtleQIGYXNzZXRBBmFzc2V0QgkAuQkCCQDMCAICGyVzJXMlc19fd2l0aGRyYXdGZWVQZXJtaWxsZQkAzAgCBQZhc3NldEEJAMwIAgUGYXNzZXRCBQNuaWwCAl9fARpjb2xsZWN0TWluQW1vdW50RGVwb3N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F3QXNzZXRCBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXn8weC8", "chainId": 84, "height": 2226003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: zW2PW8MLZuACT52u9w7FsurykWxCiXKPVPGd8EJSTnC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a () = "%s__managerPublicKey" | |
5 | + | ||
6 | + | ||
7 | + | func b (c,d) = makeString(["%s%s%s__withdrawDelay", c, d], "__") | |
8 | + | ||
9 | + | ||
10 | + | func e (c,d) = makeString(["%s%s%s__depositFeePermille", c, d], "__") | |
11 | + | ||
12 | + | ||
13 | + | func f (c,d) = makeString(["%s%s%s__withdrawFeePermille", c, d], "__") | |
14 | + | ||
15 | + | ||
16 | + | func g (c,d) = makeString(["%s%s%s__minAmountDeposit", c, d], "__") | |
17 | + | ||
18 | + | ||
19 | + | func h (c,d) = makeString(["%s%s%s__assetsPairStatus", c, d], "__") | |
20 | + | ||
21 | + | ||
22 | + | func i (c,d) = makeString(["%s%s%s__minAmountWithdraw", c, d], "__") | |
23 | + | ||
24 | + | ||
25 | + | func j (c,d,k) = makeString(["%s%s%s%s__balance", c, d, k], "__") | |
26 | + | ||
27 | + | ||
28 | + | func l (c,d) = makeString(["%s%s%s%s__totalCommissionsCollected__deposit", c, d], "__") | |
29 | + | ||
30 | + | ||
31 | + | func m (c,d) = makeString(["%s%s%s%s__totalCommissionsCollected__withdraw", c, d], "__") | |
32 | + | ||
33 | + | ||
34 | + | func n (c,d,k) = makeString(["%s%s%s%s__assetLockTime", c, d, k], "__") | |
35 | + | ||
36 | + | ||
37 | + | func o (k,c,d,p) = makeString(["%s%s%s%s__withdrawProcess__inProgress", k, c, d, toString(p)], "__") | |
38 | + | ||
39 | + | ||
40 | + | func q (k,c,d,p) = makeString(["%s%s%s%s__withdrawProcess__done", k, c, d, toString(p)], "__") | |
41 | + | ||
42 | + | ||
43 | + | func r () = { | |
44 | + | let s = getString(a()) | |
45 | + | if ($isInstanceOf(s, "String")) | |
46 | + | then { | |
47 | + | let t = s | |
48 | + | fromBase58String(t) | |
49 | + | } | |
50 | + | else if ($isInstanceOf(s, "Unit")) | |
51 | + | then unit | |
52 | + | else throw("Match error") | |
53 | + | } | |
54 | + | ||
55 | + | ||
56 | + | func u (v) = { | |
57 | + | let w = throw("Permission denied") | |
58 | + | let s = r() | |
59 | + | if ($isInstanceOf(s, "ByteVector")) | |
60 | + | then { | |
61 | + | let x = s | |
62 | + | if ((v.callerPublicKey == x)) | |
63 | + | then true | |
64 | + | else w | |
65 | + | } | |
66 | + | else if ($isInstanceOf(s, "Unit")) | |
67 | + | then if ((v.caller == this)) | |
68 | + | then true | |
69 | + | else w | |
70 | + | else throw("Match error") | |
71 | + | } | |
72 | + | ||
73 | + | ||
74 | + | @Callable(v) | |
75 | + | func registerAsset (c,d,y,z,A,B,C,D) = { | |
76 | + | let E = u(v) | |
77 | + | if ((E == E)) | |
78 | + | then { | |
79 | + | let F = b(c, d) | |
80 | + | let G = e(c, d) | |
81 | + | let H = f(c, d) | |
82 | + | let I = g(c, d) | |
83 | + | let J = i(c, d) | |
84 | + | let K = h(c, d) | |
85 | + | [IntegerEntry(F, y), IntegerEntry(G, z), IntegerEntry(H, A), IntegerEntry(I, B), IntegerEntry(J, C), IntegerEntry(K, D)] | |
86 | + | } | |
87 | + | else throw("Strict value is not equal to itself.") | |
88 | + | } | |
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | @Callable(v) | |
93 | + | func swapAssetsAToB (d) = { | |
94 | + | let L = value(v.payments[0]) | |
95 | + | let c = toBase58String(value(L.assetId)) | |
96 | + | let k = toString(v.caller) | |
97 | + | let B = valueOrErrorMessage(getInteger(g(c, d)), "This asset pair does not exist.") | |
98 | + | let M = L.amount | |
99 | + | let G = e(c, d) | |
100 | + | let z = valueOrElse(getInteger(this, G), 0) | |
101 | + | let N = ((M / 1000) * z) | |
102 | + | let O = valueOrElse(getInteger(j(c, d, k)), 0) | |
103 | + | let P = valueOrElse(getInteger(l(c, d)), 0) | |
104 | + | let Q = fromBase58String(value(d)) | |
105 | + | if ((value(getInteger(h(c, d))) != 0)) | |
106 | + | then throw("The couple's deposit is blocked.") | |
107 | + | else if ((B > L.amount)) | |
108 | + | then throw("Swap amount fail, amount is to small.") | |
109 | + | else [IntegerEntry(j(c, d, k), ((O + L.amount) - N)), IntegerEntry(l(c, d), (P + N)), ScriptTransfer(v.caller, M, Q)] | |
110 | + | } | |
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | @Callable(v) | |
115 | + | func initializationSwapAssetsBToA (c,d) = { | |
116 | + | let L = value(v.payments[0]) | |
117 | + | let R = L.amount | |
118 | + | let k = toString(v.caller) | |
119 | + | let B = valueOrErrorMessage(getInteger(i(c, d)), "This asset pair does not exist.") | |
120 | + | let S = (height + valueOrElse(getInteger(b(c, d)), 0)) | |
121 | + | let O = valueOrErrorMessage(getInteger(j(c, d, k)), "This user balance does not exist.") | |
122 | + | let P = valueOrElse(getInteger(l(c, d)), 0) | |
123 | + | let H = f(c, d) | |
124 | + | let A = valueOrElse(getInteger(H), 0) | |
125 | + | let N = ((R / 1000) * A) | |
126 | + | [IntegerEntry(n(c, d, k), S), IntegerEntry(j(c, d, k), ((O - R) - N)), IntegerEntry(o(k, c, d, S), (R - N)), IntegerEntry(m(c, d), (P + N))] | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | @Callable(v) | |
132 | + | func withdrawAsset (c,d,p) = { | |
133 | + | let k = toString(v.caller) | |
134 | + | let T = valueOrElse(getInteger(n(c, d, k)), 0) | |
135 | + | let U = valueOrElse(getInteger(o(k, c, d, p)), 0) | |
136 | + | let Q = fromBase58String(value(c)) | |
137 | + | if ((height > T)) | |
138 | + | then throw((("Withdrawal is possible after " + toString(p)) + " height or you have already withdrawn.")) | |
139 | + | else [DeleteEntry(o(k, c, d, p)), IntegerEntry(q(k, c, d, p), U), IntegerEntry(j(c, d, k), U), ScriptTransfer(v.caller, U, Q)] | |
140 | + | } | |
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | @Callable(v) | |
145 | + | func withdrawFee (c,d) = { | |
146 | + | let E = u(v) | |
147 | + | if ((E == E)) | |
148 | + | then { | |
149 | + | let V = valueOrElse(getInteger(l(c, d)), 0) | |
150 | + | let W = fromBase58String(value(c)) | |
151 | + | let X = valueOrElse(getInteger(m(c, d)), 0) | |
152 | + | let Y = fromBase58String(value(d)) | |
153 | + | [IntegerEntry(l(c, d), 0), ScriptTransfer(v.caller, V, W), IntegerEntry(m(c, d), 0), ScriptTransfer(v.caller, X, Y)] | |
154 | + | } | |
155 | + | else throw("Strict value is not equal to itself.") | |
156 | + | } | |
157 | + | ||
158 | + | ||
159 | + | @Verifier(Z) | |
160 | + | func aa () = { | |
161 | + | let ab = { | |
162 | + | let s = r() | |
163 | + | if ($isInstanceOf(s, "ByteVector")) | |
164 | + | then { | |
165 | + | let x = s | |
166 | + | x | |
167 | + | } | |
168 | + | else if ($isInstanceOf(s, "Unit")) | |
169 | + | then Z.senderPublicKey | |
170 | + | else throw("Match error") | |
171 | + | } | |
172 | + | sigVerify(Z.bodyBytes, Z.proofs[0], ab) | |
173 | + | } | |
174 | + |
github/deemru/w8io/169f3d6 21.51 ms ◑