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