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