tx · zW2PW8MLZuACT52u9w7FsurykWxCiXKPVPGd8EJSTnC 3MvXnAcEtL9x3i499UcvTQZPufrT5ZZUEd5: -0.01300000 Waves 2022.09.15 15:51 [2230247] smart account 3MvXnAcEtL9x3i499UcvTQZPufrT5ZZUEd5 > SELF 0.00000000 Waves
{ "type": 13, "id": "zW2PW8MLZuACT52u9w7FsurykWxCiXKPVPGd8EJSTnC", "fee": 1300000, "feeAssetId": null, "timestamp": 1663246325633, "version": 1, "sender": "3MvXnAcEtL9x3i499UcvTQZPufrT5ZZUEd5", "senderPublicKey": "GSAhb4fdky75LiCZ4p4DDK4rmWpmsgGBg1ZVdtPfmRES", "proofs": [ "57S1X1HHLwJUc13nw9d25pW2U9nuQ8RtbxHi9ogd2BueTUfKS6cmB5mEkv3HEcaiCdVoCLPfTMDpf5giU19Zho4c" ], "script": "base64:BgIsCAISCgoICAgBAQEBAQESAwoBCBIDCgEIEgUKAwgIARIECgIICBIDCgEIEgATAANTRVACAl9fARNrZXlNYW5hZ2VyUHVibGljS2V5AAIUJXNfX21hbmFnZXJQdWJsaWNLZXkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAIbJXNfX3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5ARBrZXlXaXRoZHJhd0RlbGF5AgZhc3NldEEGYXNzZXRCCQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICDXdpdGhkcmF3RGVsYXkJAMwIAgUGYXNzZXRBCQDMCAIFBmFzc2V0QgUDbmlsBQNTRVABFWtleURlcG9zaXRGZWVQZXJtaWxsZQIGYXNzZXRBBmFzc2V0QgkAuQkCCQDMCAICBiVzJXMlcwkAzAgCAhJkZXBvc2l0RmVlUGVybWlsbGUJAMwIAgUGYXNzZXRBCQDMCAIFBmFzc2V0QgUDbmlsBQNTRVABFmtleVdpdGhkcmF3RmVlUGVybWlsbGUCBmFzc2V0QQZhc3NldEIJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgITd2l0aGRyYXdGZWV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lclB1YmxpY0tleQAJANgEAQkBBXZhbHVlAQUCcG0JAMwIAgkBC0RlbGV0ZUVudHJ5AQkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5MSfnAw==", "chainId": 84, "height": 2230247, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AyvHf53oAhd9xGmjEpdmTPbpRPDdc5VkPoxrs5NMKyvo Next: 88Q9PZWhruvsXjkn5kzxLGt7NHAMuhFccib1Tfr58XbS Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a () = "%s__managerPublicKey" | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | func b () = "%s__managerPublicKey" | |
5 | 7 | ||
6 | 8 | ||
7 | - | func | |
9 | + | func c () = "%s__pendingManagerPublicKey" | |
8 | 10 | ||
9 | 11 | ||
10 | - | func | |
12 | + | func d (e,f) = makeString(["%s%s%s", "withdrawDelay", e, f], a) | |
11 | 13 | ||
12 | 14 | ||
13 | - | func | |
15 | + | func g (e,f) = makeString(["%s%s%s", "depositFeePermille", e, f], a) | |
14 | 16 | ||
15 | 17 | ||
16 | - | func | |
18 | + | func h (e,f) = makeString(["%s%s%s", "withdrawFeePermille", e, f], a) | |
17 | 19 | ||
18 | 20 | ||
19 | - | func | |
21 | + | func i (e,f) = makeString(["%s%s%s", "minAmountDeposit", e, f], a) | |
20 | 22 | ||
21 | 23 | ||
22 | - | func | |
24 | + | func j (e,f) = makeString(["%s%s%s", "assetsPairStatus", e, f], a) | |
23 | 25 | ||
24 | 26 | ||
25 | - | func | |
27 | + | func k (e,f) = makeString(["%s%s%s", "minAmountWithdraw", e, f], a) | |
26 | 28 | ||
27 | 29 | ||
28 | - | func l ( | |
30 | + | func l (e,f,m) = makeString(["%s%s%s%s", "balance", e, f, m], a) | |
29 | 31 | ||
30 | 32 | ||
31 | - | func | |
33 | + | func n (e,f) = makeString(["%s%s%s%s", "totalFeeCollected", "deposit", e, f], a) | |
32 | 34 | ||
33 | 35 | ||
34 | - | func | |
36 | + | func o (e,f) = makeString(["%s%s%s%s", "totalFeeCollected", "withdraw", e, f], a) | |
35 | 37 | ||
36 | 38 | ||
37 | - | func | |
39 | + | func p (e,f,m) = makeString(["%s%s%s%s", "assetLockTime", e, f, m], a) | |
38 | 40 | ||
39 | 41 | ||
40 | - | func q ( | |
42 | + | func q (m,e,f,r) = makeString(["%s%s%s%s%s%s", "withdrawProcess", "inProgress", m, e, f, toString(r)], a) | |
41 | 43 | ||
42 | 44 | ||
43 | - | func r () = { | |
44 | - | let s = getString(a()) | |
45 | - | if ($isInstanceOf(s, "String")) | |
45 | + | func s (m,e,f,r) = makeString(["%s%s%s%s%s%s", "withdrawProcess", "done", m, e, f, toString(r)], a) | |
46 | + | ||
47 | + | ||
48 | + | func t () = { | |
49 | + | let u = getString(b()) | |
50 | + | if ($isInstanceOf(u, "String")) | |
46 | 51 | then { | |
47 | - | let | |
48 | - | fromBase58String( | |
52 | + | let v = u | |
53 | + | fromBase58String(v) | |
49 | 54 | } | |
50 | - | else if ($isInstanceOf( | |
55 | + | else if ($isInstanceOf(u, "Unit")) | |
51 | 56 | then unit | |
52 | 57 | else throw("Match error") | |
53 | 58 | } | |
54 | 59 | ||
55 | 60 | ||
56 | - | func u (v) = { | |
57 | - | let w = throw("Permission denied") | |
58 | - | let s = r() | |
59 | - | if ($isInstanceOf(s, "ByteVector")) | |
61 | + | func w () = { | |
62 | + | let u = getString(c()) | |
63 | + | if ($isInstanceOf(u, "String")) | |
60 | 64 | then { | |
61 | - | let x = s | |
62 | - | if ((v.callerPublicKey == x)) | |
63 | - | then true | |
64 | - | else w | |
65 | + | let v = u | |
66 | + | fromBase58String(v) | |
65 | 67 | } | |
66 | - | else if ($isInstanceOf(s, "Unit")) | |
67 | - | then if ((v.caller == this)) | |
68 | - | then true | |
69 | - | else w | |
68 | + | else if ($isInstanceOf(u, "Unit")) | |
69 | + | then unit | |
70 | 70 | else throw("Match error") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | - | ||
75 | - | ||
76 | - | let | |
77 | - | if (( | |
74 | + | func x (y) = { | |
75 | + | let z = throw("Permission denied") | |
76 | + | let u = t() | |
77 | + | if ($isInstanceOf(u, "ByteVector")) | |
78 | 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)] | |
79 | + | let A = u | |
80 | + | if ((y.callerPublicKey == A)) | |
81 | + | then true | |
82 | + | else z | |
83 | + | } | |
84 | + | else if ($isInstanceOf(u, "Unit")) | |
85 | + | then if ((y.caller == this)) | |
86 | + | then true | |
87 | + | else z | |
88 | + | else throw("Match error") | |
89 | + | } | |
90 | + | ||
91 | + | ||
92 | + | func B (C) = throw(makeString(["otc_multiasset.ride:", C], " ")) | |
93 | + | ||
94 | + | ||
95 | + | @Callable(y) | |
96 | + | func registerAsset (e,f,D,E,F,G,H,I) = { | |
97 | + | let J = x(y) | |
98 | + | if ((J == J)) | |
99 | + | then { | |
100 | + | let K = d(e, f) | |
101 | + | let L = g(e, f) | |
102 | + | let M = h(e, f) | |
103 | + | let N = i(e, f) | |
104 | + | let O = k(e, f) | |
105 | + | let P = j(e, f) | |
106 | + | [IntegerEntry(K, D), IntegerEntry(L, E), IntegerEntry(M, F), IntegerEntry(N, G), IntegerEntry(O, H), IntegerEntry(P, I)] | |
86 | 107 | } | |
87 | 108 | else throw("Strict value is not equal to itself.") | |
88 | 109 | } | |
89 | 110 | ||
90 | 111 | ||
91 | 112 | ||
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)) | |
113 | + | @Callable(y) | |
114 | + | func swapAssetsAToB (f) = { | |
115 | + | let Q = value(y.payments[0]) | |
116 | + | let e = toBase58String(value(Q.assetId)) | |
117 | + | let R = fromBase58String(value(f)) | |
118 | + | let m = toString(y.caller) | |
119 | + | let G = valueOrErrorMessage(getInteger(i(e, f)), "This asset pair does not exist.") | |
120 | + | let S = Q.amount | |
121 | + | let E = valueOrElse(getInteger(g(e, f)), 0) | |
122 | + | let T = ((S / 1000) * E) | |
123 | + | let U = valueOrElse(getInteger(l(e, f, m)), 0) | |
124 | + | let V = valueOrElse(getInteger(n(e, f)), 0) | |
125 | + | let W = value(getInteger(j(e, f))) | |
126 | + | let X = if ((W == 0)) | |
127 | + | then true | |
128 | + | else B("The couple's deposit is blocked.") | |
129 | + | if ((X == X)) | |
148 | 130 | 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)] | |
131 | + | let Y = if ((S > G)) | |
132 | + | then true | |
133 | + | else B("Swap amount fail, amount is to small.") | |
134 | + | if ((Y == Y)) | |
135 | + | then { | |
136 | + | let Z = ((U + S) - T) | |
137 | + | let aa = if ((Z > 0)) | |
138 | + | then true | |
139 | + | else B("Swap amount fail, amount is to small.") | |
140 | + | if ((aa == aa)) | |
141 | + | then [IntegerEntry(l(e, f, m), Z), IntegerEntry(n(e, f), (V + T)), ScriptTransfer(y.caller, S, R)] | |
142 | + | else throw("Strict value is not equal to itself.") | |
143 | + | } | |
144 | + | else throw("Strict value is not equal to itself.") | |
154 | 145 | } | |
155 | 146 | else throw("Strict value is not equal to itself.") | |
156 | 147 | } | |
157 | 148 | ||
158 | 149 | ||
159 | - | @Verifier(Z) | |
160 | - | func aa () = { | |
161 | - | let ab = { | |
162 | - | let s = r() | |
163 | - | if ($isInstanceOf(s, "ByteVector")) | |
150 | + | ||
151 | + | @Callable(y) | |
152 | + | func initializationSwapAssetsBToA (e) = { | |
153 | + | let Q = value(y.payments[0]) | |
154 | + | let ab = Q.amount | |
155 | + | let f = toBase58String(value(Q.assetId)) | |
156 | + | let m = toString(y.caller) | |
157 | + | let G = valueOrErrorMessage(getInteger(k(e, f)), "This asset pair does not exist.") | |
158 | + | let ac = (height + valueOrElse(getInteger(d(e, f)), 0)) | |
159 | + | let U = valueOrErrorMessage(getInteger(l(e, f, m)), "This user balance does not exist.") | |
160 | + | let V = valueOrElse(getInteger(n(e, f)), 0) | |
161 | + | let M = h(e, f) | |
162 | + | let F = valueOrElse(getInteger(M), 0) | |
163 | + | let T = ((ab / 1000) * F) | |
164 | + | let Z = ((U - ab) - T) | |
165 | + | let aa = if ((Z > 0)) | |
166 | + | then true | |
167 | + | else B("Swap amount fail, amount is to small.") | |
168 | + | if ((aa == aa)) | |
169 | + | then { | |
170 | + | let ad = if ((valueOrElse(getInteger(q(m, e, f, ac)), 0) == 0)) | |
171 | + | then true | |
172 | + | else B("At this height, there is already an exchange of this pair.") | |
173 | + | if ((ad == ad)) | |
174 | + | then [IntegerEntry(p(e, f, m), ac), IntegerEntry(l(e, f, m), Z), IntegerEntry(q(m, e, f, ac), (ab - T)), IntegerEntry(o(e, f), (V + T))] | |
175 | + | else throw("Strict value is not equal to itself.") | |
176 | + | } | |
177 | + | else throw("Strict value is not equal to itself.") | |
178 | + | } | |
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | @Callable(y) | |
183 | + | func withdrawAsset (e,f,r) = { | |
184 | + | let m = toString(y.caller) | |
185 | + | let ac = value(getInteger(p(e, f, m))) | |
186 | + | let ae = value(getInteger(q(m, e, f, r))) | |
187 | + | let R = fromBase58String(value(e)) | |
188 | + | let af = if ((height >= ac)) | |
189 | + | then true | |
190 | + | else B((("Withdrawal is possible after " + toString(r)) + " height or you have already withdrawn.")) | |
191 | + | if ((af == af)) | |
192 | + | then [DeleteEntry(q(m, e, f, r)), IntegerEntry(s(m, e, f, r), ae), IntegerEntry(l(e, f, m), ae), ScriptTransfer(y.caller, ae, R)] | |
193 | + | else throw("Strict value is not equal to itself.") | |
194 | + | } | |
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | @Callable(y) | |
199 | + | func withdrawFee (e,f) = { | |
200 | + | let J = x(y) | |
201 | + | if ((J == J)) | |
202 | + | then { | |
203 | + | let ag = valueOrElse(getInteger(n(e, f)), 0) | |
204 | + | let ah = fromBase58String(value(e)) | |
205 | + | let ai = valueOrElse(getInteger(o(e, f)), 0) | |
206 | + | let aj = fromBase58String(value(f)) | |
207 | + | [IntegerEntry(n(e, f), 0), ScriptTransfer(y.caller, ag, ah), IntegerEntry(o(e, f), 0), ScriptTransfer(y.caller, ai, aj)] | |
208 | + | } | |
209 | + | else throw("Strict value is not equal to itself.") | |
210 | + | } | |
211 | + | ||
212 | + | ||
213 | + | ||
214 | + | @Callable(y) | |
215 | + | func setManager (ak) = { | |
216 | + | let J = x(y) | |
217 | + | if ((J == J)) | |
218 | + | then { | |
219 | + | let al = fromBase58String(ak) | |
220 | + | if ((al == al)) | |
221 | + | then [StringEntry(c(), ak)] | |
222 | + | else throw("Strict value is not equal to itself.") | |
223 | + | } | |
224 | + | else throw("Strict value is not equal to itself.") | |
225 | + | } | |
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | @Callable(y) | |
230 | + | func confirmManager () = { | |
231 | + | let am = w() | |
232 | + | let an = if (isDefined(am)) | |
233 | + | then true | |
234 | + | else B("no pending manager") | |
235 | + | if ((an == an)) | |
236 | + | then { | |
237 | + | let ao = if ((y.callerPublicKey == value(am))) | |
238 | + | then true | |
239 | + | else B("you are not pending manager") | |
240 | + | if ((ao == ao)) | |
241 | + | then [StringEntry(b(), toBase58String(value(am))), DeleteEntry(c())] | |
242 | + | else throw("Strict value is not equal to itself.") | |
243 | + | } | |
244 | + | else throw("Strict value is not equal to itself.") | |
245 | + | } | |
246 | + | ||
247 | + | ||
248 | + | @Verifier(ap) | |
249 | + | func aq () = { | |
250 | + | let ar = { | |
251 | + | let u = t() | |
252 | + | if ($isInstanceOf(u, "ByteVector")) | |
164 | 253 | then { | |
165 | - | let | |
166 | - | | |
254 | + | let A = u | |
255 | + | A | |
167 | 256 | } | |
168 | - | else if ($isInstanceOf( | |
169 | - | then | |
257 | + | else if ($isInstanceOf(u, "Unit")) | |
258 | + | then ap.senderPublicKey | |
170 | 259 | else throw("Match error") | |
171 | 260 | } | |
172 | - | sigVerify( | |
261 | + | sigVerify(ap.bodyBytes, ap.proofs[0], ar) | |
173 | 262 | } | |
174 | 263 |
github/deemru/w8io/169f3d6 81.22 ms ◑