tx · J78Pt3YfBwHAVf6ptMvBLvzAyznFXL4h1rHqAdNS74Dh 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu: -0.01700000 Waves 2022.06.08 19:55 [2087661] smart account 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu > SELF 0.00000000 Waves
{ "type": 13, "id": "J78Pt3YfBwHAVf6ptMvBLvzAyznFXL4h1rHqAdNS74Dh", "fee": 1700000, "feeAssetId": null, "timestamp": 1654707397541, "version": 1, "sender": "3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu", "senderPublicKey": "668WwQVaWxezbvLEK3FccCSTbjst4zYAJDPrfLFRj9b9", "proofs": [ "5qqRnmhSA2vocNqRBHMo1w8cb5tZe32UvQzt6mhjGcLGFxTwGjdSQ9uATYsbTHjvZPYdsX1jmWv47cXH4rFFWof7" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgASABIFCgMICAgSCQoHCAgICAEIARIAEgQKAggBEgMKAQgSAAAAABYAAAAAA1NFUAIAAAACX18AAAAABUVNUFRZAgAAAAAAAAAACGNvbnRyYWN0AgAAAA9scF9zdGFraW5nX3YyOiABAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAACQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAAQbWFuYWdlclB1YmxpY0tleQUAAAADbmlsBQAAAANTRVABAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAAF3BlbmRpbmdNYW5hZ2VyUHVibGljS2V5BQAAAANuaWwFAAAAA1NFUAEAAAAGa2V5VFZMAAAAAQAAAAdhc3NldElkCQAEuQAAAAIJAARMAAAAAgIAAAAEJXMlcwkABEwAAAACAgAAAAN0dmwJAARMAAAAAgUAAAAHYXNzZXRJZAUAAAADbmlsBQAAAANTRVABAAAADWtleVRWTEhpc3RvcnkAAAACAAAAB2Fzc2V0SWQAAAAGaGVpZ2h0C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BAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5KHPJRw==", "chainId": 84, "height": 2087661, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9LA7qr8ZwkVPtVgErL9XCej1ZuCqeWCi6btZbdQZHBVY Next: 6sPeaTDqUhQpwXGNvnYT6n6xbuAnYxreRmSWLoseSPUw Diff:
Old | New | Differences | |
---|---|---|---|
40 | 40 | func q (g,r,s) = makeString(["%s%s%s%s", "userWithdrawalAmount", g, r, s], a) | |
41 | 41 | ||
42 | 42 | ||
43 | - | func t () = makeString(["%s", " | |
43 | + | func t (g) = makeString(["%s%s", "otherChainAssetDecimals", g], a) | |
44 | 44 | ||
45 | 45 | ||
46 | - | func u () = { | |
47 | - | let v = getString(d()) | |
48 | - | if ($isInstanceOf(v, "String")) | |
46 | + | func u () = makeString(["%s", "assetsStoreContract"], a) | |
47 | + | ||
48 | + | ||
49 | + | func v () = { | |
50 | + | let w = getString(d()) | |
51 | + | if ($isInstanceOf(w, "String")) | |
49 | 52 | then { | |
50 | - | let | |
51 | - | fromBase58String( | |
53 | + | let x = w | |
54 | + | fromBase58String(x) | |
52 | 55 | } | |
53 | - | else if ($isInstanceOf( | |
56 | + | else if ($isInstanceOf(w, "Unit")) | |
54 | 57 | then unit | |
55 | 58 | else throw("Match error") | |
56 | 59 | } | |
57 | 60 | ||
58 | 61 | ||
59 | - | func | |
60 | - | let | |
61 | - | if ($isInstanceOf( | |
62 | + | func y () = { | |
63 | + | let w = getString(e()) | |
64 | + | if ($isInstanceOf(w, "String")) | |
62 | 65 | then { | |
63 | - | let | |
64 | - | fromBase58String( | |
66 | + | let x = w | |
67 | + | fromBase58String(x) | |
65 | 68 | } | |
66 | - | else if ($isInstanceOf( | |
69 | + | else if ($isInstanceOf(w, "Unit")) | |
67 | 70 | then unit | |
68 | 71 | else throw("Match error") | |
69 | 72 | } | |
70 | 73 | ||
71 | 74 | ||
72 | - | func | |
75 | + | func z (A) = throw((c + A)) | |
73 | 76 | ||
74 | 77 | ||
75 | - | func | |
76 | - | let | |
77 | - | let | |
78 | - | if ($isInstanceOf( | |
78 | + | func B (C) = { | |
79 | + | let D = z("permission denied") | |
80 | + | let w = v() | |
81 | + | if ($isInstanceOf(w, "ByteVector")) | |
79 | 82 | then { | |
80 | - | let | |
81 | - | if (( | |
83 | + | let E = w | |
84 | + | if ((C.callerPublicKey == E)) | |
82 | 85 | then true | |
83 | - | else | |
86 | + | else D | |
84 | 87 | } | |
85 | - | else if ($isInstanceOf( | |
86 | - | then if (( | |
88 | + | else if ($isInstanceOf(w, "Unit")) | |
89 | + | then if ((C.caller == this)) | |
87 | 90 | then true | |
88 | - | else | |
91 | + | else D | |
89 | 92 | else throw("Match error") | |
90 | 93 | } | |
91 | 94 | ||
92 | 95 | ||
93 | - | func | |
96 | + | func F () = addressFromStringValue(value(getString(u()))) | |
94 | 97 | ||
95 | 98 | ||
96 | - | func | |
97 | - | let | |
98 | - | if ( | |
99 | + | func G (C,g) = { | |
100 | + | let H = (toString(C.caller) == valueOrElse(getString(p(g)), b)) | |
101 | + | if (H) | |
99 | 102 | then true | |
100 | 103 | else { | |
101 | - | let | |
102 | - | if (( | |
104 | + | let I = B(C) | |
105 | + | if ((I == I)) | |
103 | 106 | then true | |
104 | 107 | else throw("Strict value is not equal to itself.") | |
105 | 108 | } | |
106 | 109 | } | |
107 | 110 | ||
108 | 111 | ||
109 | - | @Callable( | |
110 | - | func constructor ( | |
111 | - | let | |
112 | - | if (( | |
113 | - | then [StringEntry( | |
112 | + | @Callable(C) | |
113 | + | func constructor (F) = { | |
114 | + | let I = B(C) | |
115 | + | if ((I == I)) | |
116 | + | then [StringEntry(u(), F)] | |
114 | 117 | else throw("Strict value is not equal to itself.") | |
115 | 118 | } | |
116 | 119 | ||
117 | 120 | ||
118 | 121 | ||
119 | - | @Callable( | |
122 | + | @Callable(C) | |
120 | 123 | func put () = { | |
121 | - | let | |
122 | - | let | |
123 | - | let g = toBase58String( | |
124 | - | let | |
124 | + | let J = value(C.payments[0]) | |
125 | + | let K = value(J.assetId) | |
126 | + | let g = toBase58String(K) | |
127 | + | let L = [if ((size(C.payments) == 1)) | |
125 | 128 | then true | |
126 | - | else | |
129 | + | else z("only one payment must be attached"), if (valueOrElse(getBoolean(l(g)), false)) | |
127 | 130 | then true | |
128 | - | else | |
131 | + | else z("attached payment asset must be registered in the contract"), if ((J.amount > 0)) | |
129 | 132 | then true | |
130 | - | else | |
131 | - | if (( | |
133 | + | else z("positive amount required")] | |
134 | + | if ((L == L)) | |
132 | 135 | then { | |
133 | - | let | |
136 | + | let M = valueOrElse(getInteger(f(g)), 0) | |
134 | 137 | let o = value(getString(m(g))) | |
135 | - | let | |
136 | - | let | |
137 | - | then (( | |
138 | - | else | |
139 | - | [Reissue( | |
138 | + | let N = value(assetInfo(fromBase58String(g))) | |
139 | + | let O = if ((M > 0)) | |
140 | + | then ((J.amount * N.quantity) / M) | |
141 | + | else J.amount | |
142 | + | [Reissue(N.id, O, true), ScriptTransfer(C.caller, O, N.id)] | |
140 | 143 | } | |
141 | 144 | else throw("Strict value is not equal to itself.") | |
142 | 145 | } | |
143 | 146 | ||
144 | 147 | ||
145 | 148 | ||
146 | - | @Callable( | |
149 | + | @Callable(C) | |
147 | 150 | func submitGetRequest () = { | |
148 | - | let | |
149 | - | let | |
150 | - | let o = toBase58String( | |
151 | - | let r = toString( | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
151 | + | let J = value(C.payments[0]) | |
152 | + | let P = value(J.assetId) | |
153 | + | let o = toBase58String(P) | |
154 | + | let r = toString(C.caller) | |
155 | + | let Q = value(getString(n(o))) | |
156 | + | let R = J.amount | |
157 | + | let L = [if ((size(C.payments) == 1)) | |
155 | 158 | then true | |
156 | - | else | |
159 | + | else z("only one payment must be attached"), if (valueOrElse(getBoolean(l(Q)), false)) | |
157 | 160 | then true | |
158 | - | else | |
161 | + | else z("attached payment asset must be registered in the contract"), if ((R > 0)) | |
159 | 162 | then true | |
160 | - | else | |
161 | - | if (( | |
163 | + | else z("positive amount to withdrawal required")] | |
164 | + | if ((L == L)) | |
162 | 165 | then { | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | [Burn( | |
166 | + | let S = valueOrElse(getInteger(j(Q)), 0) | |
167 | + | let M = valueOrElse(getInteger(f(Q)), 0) | |
168 | + | let N = value(assetInfo(P)) | |
169 | + | let T = N.decimals | |
170 | + | let U = ((R * M) / N.quantity) | |
171 | + | [Burn(P, R), IntegerEntry(j(Q), (S + U)), IntegerEntry(q(Q, r, toBase58String(C.transactionId)), U)] | |
169 | 172 | } | |
170 | 173 | else throw("Strict value is not equal to itself.") | |
171 | 174 | } | |
172 | 175 | ||
173 | 176 | ||
174 | 177 | ||
175 | - | @Callable( | |
176 | - | func executeGetRequest (g,r, | |
177 | - | let | |
178 | - | let | |
178 | + | @Callable(C) | |
179 | + | func executeGetRequest (g,r,V) = { | |
180 | + | let U = valueOrElse(getInteger(q(g, r, V)), 0) | |
181 | + | let L = [if (valueOrElse(getBoolean(l(g)), false)) | |
179 | 182 | then true | |
180 | - | else | |
183 | + | else z("asset must be registered in the contract"), if ((U > 0)) | |
181 | 184 | then true | |
182 | - | else | |
183 | - | if (( | |
185 | + | else z("no corresponding withdrawal request")] | |
186 | + | if ((L == L)) | |
184 | 187 | then { | |
185 | - | let | |
186 | - | [ScriptTransfer(addressFromStringValue(r), | |
188 | + | let S = valueOrElse(getInteger(j(g)), 0) | |
189 | + | [ScriptTransfer(addressFromStringValue(r), U, fromBase58String(g)), DeleteEntry(q(g, r, V)), IntegerEntry(j(g), (S - U))] | |
187 | 190 | } | |
188 | 191 | else throw("Strict value is not equal to itself.") | |
189 | 192 | } | |
190 | 193 | ||
191 | 194 | ||
192 | 195 | ||
193 | - | @Callable( | |
194 | - | func registerAsset (g | |
195 | - | let | |
196 | + | @Callable(C) | |
197 | + | func registerAsset (g,W,X,Y,Z,aa,ab) = { | |
198 | + | let L = [B(C), if ((Z >= 0)) | |
196 | 199 | then true | |
197 | - | else | |
200 | + | else z("invalid delayInBlocks"), if ((addressFromString(aa) != unit)) | |
198 | 201 | then true | |
199 | - | else | |
202 | + | else z("invalid proxyAddress"), if ((valueOrElse(getBoolean(l(g)), false) == false)) | |
200 | 203 | then true | |
201 | - | else | |
202 | - | if (( | |
204 | + | else z("asset already registered")] | |
205 | + | if ((L == L)) | |
203 | 206 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let o = toBase58String( | |
208 | - | let | |
209 | - | if (( | |
207 | + | let T = value(assetInfo(fromBase58String(g))).decimals | |
208 | + | let ac = Issue(W, X, 1, T, true) | |
209 | + | let P = calculateAssetId(ac) | |
210 | + | let o = toBase58String(P) | |
211 | + | let ad = invoke(F(), "createOrUpdate", [o, Y, false], nil) | |
212 | + | if ((ad == ad)) | |
210 | 213 | then { | |
211 | - | let | |
212 | - | if (( | |
213 | - | then [BooleanEntry(l(g), true), IntegerEntry(f(g), 0), IntegerEntry(h(g, height), 0), IntegerEntry(k(g), | |
214 | + | let ae = invoke(F(), "addLabel", [o, "DEFI"], nil) | |
215 | + | if ((ae == ae)) | |
216 | + | then [BooleanEntry(l(g), true), IntegerEntry(f(g), 0), IntegerEntry(h(g, height), 0), IntegerEntry(k(g), Z), StringEntry(n(o), g), StringEntry(m(g), o), StringEntry(p(g), aa), IntegerEntry(t(g), ab), ac, Burn(P, 1)] | |
214 | 217 | else throw("Strict value is not equal to itself.") | |
215 | 218 | } | |
216 | 219 | else throw("Strict value is not equal to itself.") | |
220 | 223 | ||
221 | 224 | ||
222 | 225 | ||
223 | - | @Callable( | |
226 | + | @Callable(C) | |
224 | 227 | func topUpBalance () = { | |
225 | - | let | |
226 | - | let g = toBase58String(value( | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
228 | + | let J = valueOrErrorMessage(C.payments[0], (c + "payment must be attached")) | |
229 | + | let g = toBase58String(value(J.assetId)) | |
230 | + | let af = J.amount | |
231 | + | let S = valueOrElse(getInteger(j(g)), 0) | |
232 | + | let L = [G(C, g), if ((size(C.payments) == 1)) | |
230 | 233 | then true | |
231 | - | else | |
234 | + | else z("only one payment must be attached"), if (valueOrElse(getBoolean(l(g)), false)) | |
232 | 235 | then true | |
233 | - | else | |
236 | + | else z("attached payment asset must be registered in the contract"), if ((S != 0)) | |
234 | 237 | then true | |
235 | - | else | |
238 | + | else z("zero pendingWithdrawals, nothing to top up"), if ((S >= af)) | |
236 | 239 | then true | |
237 | 240 | else "amount to top up must be less or equal than pendingWithdrawals"] | |
238 | - | if (( | |
239 | - | then [IntegerEntry(j(g), ( | |
241 | + | if ((L == L)) | |
242 | + | then [IntegerEntry(j(g), (S - af))] | |
240 | 243 | else throw("Strict value is not equal to itself.") | |
241 | 244 | } | |
242 | 245 | ||
243 | 246 | ||
244 | 247 | ||
245 | - | @Callable(B) | |
246 | - | func setTVL (g,ae) = { | |
247 | - | let H = F(B, g) | |
248 | - | if ((H == H)) | |
249 | - | then [IntegerEntry(f(g), ae), IntegerEntry(h(g, height), ae)] | |
248 | + | @Callable(C) | |
249 | + | func setTVL (g,ag) = { | |
250 | + | let L = [G(C, g), if (valueOrElse(getBoolean(l(g)), false)) | |
251 | + | then true | |
252 | + | else z("asset must be registered in the contract")] | |
253 | + | if ((L == L)) | |
254 | + | then { | |
255 | + | let ah = value(assetInfo(fromBase58String(g))).decimals | |
256 | + | let ab = value(getInteger(t(g))) | |
257 | + | let ai = if ((ab > ah)) | |
258 | + | then { | |
259 | + | let aj = (ab - ah) | |
260 | + | (ag / pow(10, 0, aj, 0, 0, DOWN)) | |
261 | + | } | |
262 | + | else if ((ah > ab)) | |
263 | + | then { | |
264 | + | let aj = (ah - ab) | |
265 | + | (ag * pow(10, 0, aj, 0, 0, DOWN)) | |
266 | + | } | |
267 | + | else ag | |
268 | + | [IntegerEntry(f(g), ai), IntegerEntry(h(g, height), ai)] | |
269 | + | } | |
250 | 270 | else throw("Strict value is not equal to itself.") | |
251 | 271 | } | |
252 | 272 | ||
253 | 273 | ||
254 | 274 | ||
255 | - | @Callable( | |
256 | - | func setManager ( | |
257 | - | let | |
258 | - | if (( | |
275 | + | @Callable(C) | |
276 | + | func setManager (ak) = { | |
277 | + | let I = B(C) | |
278 | + | if ((I == I)) | |
259 | 279 | then { | |
260 | - | let | |
261 | - | if (( | |
262 | - | then [StringEntry(e(), | |
280 | + | let al = fromBase58String(ak) | |
281 | + | if ((al == al)) | |
282 | + | then [StringEntry(e(), ak)] | |
263 | 283 | else throw("Strict value is not equal to itself.") | |
264 | 284 | } | |
265 | 285 | else throw("Strict value is not equal to itself.") | |
267 | 287 | ||
268 | 288 | ||
269 | 289 | ||
270 | - | @Callable( | |
290 | + | @Callable(C) | |
271 | 291 | func confirmManager () = { | |
272 | - | let | |
273 | - | let | |
292 | + | let am = y() | |
293 | + | let an = if (isDefined(am)) | |
274 | 294 | then true | |
275 | - | else | |
276 | - | if (( | |
295 | + | else z("no pending manager") | |
296 | + | if ((an == an)) | |
277 | 297 | then { | |
278 | - | let | |
298 | + | let ao = if ((C.callerPublicKey == value(am))) | |
279 | 299 | then true | |
280 | - | else | |
281 | - | if (( | |
282 | - | then [StringEntry(d(), toBase58String(value( | |
300 | + | else z("you are not pending manager") | |
301 | + | if ((ao == ao)) | |
302 | + | then [StringEntry(d(), toBase58String(value(am))), DeleteEntry(e())] | |
283 | 303 | else throw("Strict value is not equal to itself.") | |
284 | 304 | } | |
285 | 305 | else throw("Strict value is not equal to itself.") | |
286 | 306 | } | |
287 | 307 | ||
288 | 308 | ||
289 | - | @Verifier( | |
290 | - | func | |
291 | - | let | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
309 | + | @Verifier(ap) | |
310 | + | func aq () = { | |
311 | + | let ar = { | |
312 | + | let w = v() | |
313 | + | if ($isInstanceOf(w, "ByteVector")) | |
294 | 314 | then { | |
295 | - | let | |
296 | - | | |
315 | + | let E = w | |
316 | + | E | |
297 | 317 | } | |
298 | - | else if ($isInstanceOf( | |
299 | - | then | |
318 | + | else if ($isInstanceOf(w, "Unit")) | |
319 | + | then ap.senderPublicKey | |
300 | 320 | else throw("Match error") | |
301 | 321 | } | |
302 | - | sigVerify( | |
322 | + | sigVerify(ap.bodyBytes, ap.proofs[0], ar) | |
303 | 323 | } | |
304 | 324 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 | ||
8 | 8 | let c = "lp_staking_v2: " | |
9 | 9 | ||
10 | 10 | func d () = makeString(["%s", "managerPublicKey"], a) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e () = makeString(["%s", "pendingManagerPublicKey"], a) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func f (g) = makeString(["%s%s", "tvl", g], a) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func h (g,i) = makeString(["%s%s%d", "tvlHistory", g, toString(i)], a) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (g) = makeString(["%s%s", "pendingWithdrawals", g], a) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k (g) = makeString(["%s%s", "delayInBlocks", g], a) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l (g) = makeString(["%s%s", "created", g], a) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m (g) = makeString(["%s%s", "assetIdToLPId", g], a) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n (o) = makeString(["%s%s", "lpIdToAssetId", o], a) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func p (g) = makeString(["%s%s", "proxyAddress", g], a) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (g,r,s) = makeString(["%s%s%s%s", "userWithdrawalAmount", g, r, s], a) | |
41 | 41 | ||
42 | 42 | ||
43 | - | func t () = makeString(["%s", " | |
43 | + | func t (g) = makeString(["%s%s", "otherChainAssetDecimals", g], a) | |
44 | 44 | ||
45 | 45 | ||
46 | - | func u () = { | |
47 | - | let v = getString(d()) | |
48 | - | if ($isInstanceOf(v, "String")) | |
46 | + | func u () = makeString(["%s", "assetsStoreContract"], a) | |
47 | + | ||
48 | + | ||
49 | + | func v () = { | |
50 | + | let w = getString(d()) | |
51 | + | if ($isInstanceOf(w, "String")) | |
49 | 52 | then { | |
50 | - | let | |
51 | - | fromBase58String( | |
53 | + | let x = w | |
54 | + | fromBase58String(x) | |
52 | 55 | } | |
53 | - | else if ($isInstanceOf( | |
56 | + | else if ($isInstanceOf(w, "Unit")) | |
54 | 57 | then unit | |
55 | 58 | else throw("Match error") | |
56 | 59 | } | |
57 | 60 | ||
58 | 61 | ||
59 | - | func | |
60 | - | let | |
61 | - | if ($isInstanceOf( | |
62 | + | func y () = { | |
63 | + | let w = getString(e()) | |
64 | + | if ($isInstanceOf(w, "String")) | |
62 | 65 | then { | |
63 | - | let | |
64 | - | fromBase58String( | |
66 | + | let x = w | |
67 | + | fromBase58String(x) | |
65 | 68 | } | |
66 | - | else if ($isInstanceOf( | |
69 | + | else if ($isInstanceOf(w, "Unit")) | |
67 | 70 | then unit | |
68 | 71 | else throw("Match error") | |
69 | 72 | } | |
70 | 73 | ||
71 | 74 | ||
72 | - | func | |
75 | + | func z (A) = throw((c + A)) | |
73 | 76 | ||
74 | 77 | ||
75 | - | func | |
76 | - | let | |
77 | - | let | |
78 | - | if ($isInstanceOf( | |
78 | + | func B (C) = { | |
79 | + | let D = z("permission denied") | |
80 | + | let w = v() | |
81 | + | if ($isInstanceOf(w, "ByteVector")) | |
79 | 82 | then { | |
80 | - | let | |
81 | - | if (( | |
83 | + | let E = w | |
84 | + | if ((C.callerPublicKey == E)) | |
82 | 85 | then true | |
83 | - | else | |
86 | + | else D | |
84 | 87 | } | |
85 | - | else if ($isInstanceOf( | |
86 | - | then if (( | |
88 | + | else if ($isInstanceOf(w, "Unit")) | |
89 | + | then if ((C.caller == this)) | |
87 | 90 | then true | |
88 | - | else | |
91 | + | else D | |
89 | 92 | else throw("Match error") | |
90 | 93 | } | |
91 | 94 | ||
92 | 95 | ||
93 | - | func | |
96 | + | func F () = addressFromStringValue(value(getString(u()))) | |
94 | 97 | ||
95 | 98 | ||
96 | - | func | |
97 | - | let | |
98 | - | if ( | |
99 | + | func G (C,g) = { | |
100 | + | let H = (toString(C.caller) == valueOrElse(getString(p(g)), b)) | |
101 | + | if (H) | |
99 | 102 | then true | |
100 | 103 | else { | |
101 | - | let | |
102 | - | if (( | |
104 | + | let I = B(C) | |
105 | + | if ((I == I)) | |
103 | 106 | then true | |
104 | 107 | else throw("Strict value is not equal to itself.") | |
105 | 108 | } | |
106 | 109 | } | |
107 | 110 | ||
108 | 111 | ||
109 | - | @Callable( | |
110 | - | func constructor ( | |
111 | - | let | |
112 | - | if (( | |
113 | - | then [StringEntry( | |
112 | + | @Callable(C) | |
113 | + | func constructor (F) = { | |
114 | + | let I = B(C) | |
115 | + | if ((I == I)) | |
116 | + | then [StringEntry(u(), F)] | |
114 | 117 | else throw("Strict value is not equal to itself.") | |
115 | 118 | } | |
116 | 119 | ||
117 | 120 | ||
118 | 121 | ||
119 | - | @Callable( | |
122 | + | @Callable(C) | |
120 | 123 | func put () = { | |
121 | - | let | |
122 | - | let | |
123 | - | let g = toBase58String( | |
124 | - | let | |
124 | + | let J = value(C.payments[0]) | |
125 | + | let K = value(J.assetId) | |
126 | + | let g = toBase58String(K) | |
127 | + | let L = [if ((size(C.payments) == 1)) | |
125 | 128 | then true | |
126 | - | else | |
129 | + | else z("only one payment must be attached"), if (valueOrElse(getBoolean(l(g)), false)) | |
127 | 130 | then true | |
128 | - | else | |
131 | + | else z("attached payment asset must be registered in the contract"), if ((J.amount > 0)) | |
129 | 132 | then true | |
130 | - | else | |
131 | - | if (( | |
133 | + | else z("positive amount required")] | |
134 | + | if ((L == L)) | |
132 | 135 | then { | |
133 | - | let | |
136 | + | let M = valueOrElse(getInteger(f(g)), 0) | |
134 | 137 | let o = value(getString(m(g))) | |
135 | - | let | |
136 | - | let | |
137 | - | then (( | |
138 | - | else | |
139 | - | [Reissue( | |
138 | + | let N = value(assetInfo(fromBase58String(g))) | |
139 | + | let O = if ((M > 0)) | |
140 | + | then ((J.amount * N.quantity) / M) | |
141 | + | else J.amount | |
142 | + | [Reissue(N.id, O, true), ScriptTransfer(C.caller, O, N.id)] | |
140 | 143 | } | |
141 | 144 | else throw("Strict value is not equal to itself.") | |
142 | 145 | } | |
143 | 146 | ||
144 | 147 | ||
145 | 148 | ||
146 | - | @Callable( | |
149 | + | @Callable(C) | |
147 | 150 | func submitGetRequest () = { | |
148 | - | let | |
149 | - | let | |
150 | - | let o = toBase58String( | |
151 | - | let r = toString( | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
151 | + | let J = value(C.payments[0]) | |
152 | + | let P = value(J.assetId) | |
153 | + | let o = toBase58String(P) | |
154 | + | let r = toString(C.caller) | |
155 | + | let Q = value(getString(n(o))) | |
156 | + | let R = J.amount | |
157 | + | let L = [if ((size(C.payments) == 1)) | |
155 | 158 | then true | |
156 | - | else | |
159 | + | else z("only one payment must be attached"), if (valueOrElse(getBoolean(l(Q)), false)) | |
157 | 160 | then true | |
158 | - | else | |
161 | + | else z("attached payment asset must be registered in the contract"), if ((R > 0)) | |
159 | 162 | then true | |
160 | - | else | |
161 | - | if (( | |
163 | + | else z("positive amount to withdrawal required")] | |
164 | + | if ((L == L)) | |
162 | 165 | then { | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | [Burn( | |
166 | + | let S = valueOrElse(getInteger(j(Q)), 0) | |
167 | + | let M = valueOrElse(getInteger(f(Q)), 0) | |
168 | + | let N = value(assetInfo(P)) | |
169 | + | let T = N.decimals | |
170 | + | let U = ((R * M) / N.quantity) | |
171 | + | [Burn(P, R), IntegerEntry(j(Q), (S + U)), IntegerEntry(q(Q, r, toBase58String(C.transactionId)), U)] | |
169 | 172 | } | |
170 | 173 | else throw("Strict value is not equal to itself.") | |
171 | 174 | } | |
172 | 175 | ||
173 | 176 | ||
174 | 177 | ||
175 | - | @Callable( | |
176 | - | func executeGetRequest (g,r, | |
177 | - | let | |
178 | - | let | |
178 | + | @Callable(C) | |
179 | + | func executeGetRequest (g,r,V) = { | |
180 | + | let U = valueOrElse(getInteger(q(g, r, V)), 0) | |
181 | + | let L = [if (valueOrElse(getBoolean(l(g)), false)) | |
179 | 182 | then true | |
180 | - | else | |
183 | + | else z("asset must be registered in the contract"), if ((U > 0)) | |
181 | 184 | then true | |
182 | - | else | |
183 | - | if (( | |
185 | + | else z("no corresponding withdrawal request")] | |
186 | + | if ((L == L)) | |
184 | 187 | then { | |
185 | - | let | |
186 | - | [ScriptTransfer(addressFromStringValue(r), | |
188 | + | let S = valueOrElse(getInteger(j(g)), 0) | |
189 | + | [ScriptTransfer(addressFromStringValue(r), U, fromBase58String(g)), DeleteEntry(q(g, r, V)), IntegerEntry(j(g), (S - U))] | |
187 | 190 | } | |
188 | 191 | else throw("Strict value is not equal to itself.") | |
189 | 192 | } | |
190 | 193 | ||
191 | 194 | ||
192 | 195 | ||
193 | - | @Callable( | |
194 | - | func registerAsset (g | |
195 | - | let | |
196 | + | @Callable(C) | |
197 | + | func registerAsset (g,W,X,Y,Z,aa,ab) = { | |
198 | + | let L = [B(C), if ((Z >= 0)) | |
196 | 199 | then true | |
197 | - | else | |
200 | + | else z("invalid delayInBlocks"), if ((addressFromString(aa) != unit)) | |
198 | 201 | then true | |
199 | - | else | |
202 | + | else z("invalid proxyAddress"), if ((valueOrElse(getBoolean(l(g)), false) == false)) | |
200 | 203 | then true | |
201 | - | else | |
202 | - | if (( | |
204 | + | else z("asset already registered")] | |
205 | + | if ((L == L)) | |
203 | 206 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let o = toBase58String( | |
208 | - | let | |
209 | - | if (( | |
207 | + | let T = value(assetInfo(fromBase58String(g))).decimals | |
208 | + | let ac = Issue(W, X, 1, T, true) | |
209 | + | let P = calculateAssetId(ac) | |
210 | + | let o = toBase58String(P) | |
211 | + | let ad = invoke(F(), "createOrUpdate", [o, Y, false], nil) | |
212 | + | if ((ad == ad)) | |
210 | 213 | then { | |
211 | - | let | |
212 | - | if (( | |
213 | - | then [BooleanEntry(l(g), true), IntegerEntry(f(g), 0), IntegerEntry(h(g, height), 0), IntegerEntry(k(g), | |
214 | + | let ae = invoke(F(), "addLabel", [o, "DEFI"], nil) | |
215 | + | if ((ae == ae)) | |
216 | + | then [BooleanEntry(l(g), true), IntegerEntry(f(g), 0), IntegerEntry(h(g, height), 0), IntegerEntry(k(g), Z), StringEntry(n(o), g), StringEntry(m(g), o), StringEntry(p(g), aa), IntegerEntry(t(g), ab), ac, Burn(P, 1)] | |
214 | 217 | else throw("Strict value is not equal to itself.") | |
215 | 218 | } | |
216 | 219 | else throw("Strict value is not equal to itself.") | |
217 | 220 | } | |
218 | 221 | else throw("Strict value is not equal to itself.") | |
219 | 222 | } | |
220 | 223 | ||
221 | 224 | ||
222 | 225 | ||
223 | - | @Callable( | |
226 | + | @Callable(C) | |
224 | 227 | func topUpBalance () = { | |
225 | - | let | |
226 | - | let g = toBase58String(value( | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
228 | + | let J = valueOrErrorMessage(C.payments[0], (c + "payment must be attached")) | |
229 | + | let g = toBase58String(value(J.assetId)) | |
230 | + | let af = J.amount | |
231 | + | let S = valueOrElse(getInteger(j(g)), 0) | |
232 | + | let L = [G(C, g), if ((size(C.payments) == 1)) | |
230 | 233 | then true | |
231 | - | else | |
234 | + | else z("only one payment must be attached"), if (valueOrElse(getBoolean(l(g)), false)) | |
232 | 235 | then true | |
233 | - | else | |
236 | + | else z("attached payment asset must be registered in the contract"), if ((S != 0)) | |
234 | 237 | then true | |
235 | - | else | |
238 | + | else z("zero pendingWithdrawals, nothing to top up"), if ((S >= af)) | |
236 | 239 | then true | |
237 | 240 | else "amount to top up must be less or equal than pendingWithdrawals"] | |
238 | - | if (( | |
239 | - | then [IntegerEntry(j(g), ( | |
241 | + | if ((L == L)) | |
242 | + | then [IntegerEntry(j(g), (S - af))] | |
240 | 243 | else throw("Strict value is not equal to itself.") | |
241 | 244 | } | |
242 | 245 | ||
243 | 246 | ||
244 | 247 | ||
245 | - | @Callable(B) | |
246 | - | func setTVL (g,ae) = { | |
247 | - | let H = F(B, g) | |
248 | - | if ((H == H)) | |
249 | - | then [IntegerEntry(f(g), ae), IntegerEntry(h(g, height), ae)] | |
248 | + | @Callable(C) | |
249 | + | func setTVL (g,ag) = { | |
250 | + | let L = [G(C, g), if (valueOrElse(getBoolean(l(g)), false)) | |
251 | + | then true | |
252 | + | else z("asset must be registered in the contract")] | |
253 | + | if ((L == L)) | |
254 | + | then { | |
255 | + | let ah = value(assetInfo(fromBase58String(g))).decimals | |
256 | + | let ab = value(getInteger(t(g))) | |
257 | + | let ai = if ((ab > ah)) | |
258 | + | then { | |
259 | + | let aj = (ab - ah) | |
260 | + | (ag / pow(10, 0, aj, 0, 0, DOWN)) | |
261 | + | } | |
262 | + | else if ((ah > ab)) | |
263 | + | then { | |
264 | + | let aj = (ah - ab) | |
265 | + | (ag * pow(10, 0, aj, 0, 0, DOWN)) | |
266 | + | } | |
267 | + | else ag | |
268 | + | [IntegerEntry(f(g), ai), IntegerEntry(h(g, height), ai)] | |
269 | + | } | |
250 | 270 | else throw("Strict value is not equal to itself.") | |
251 | 271 | } | |
252 | 272 | ||
253 | 273 | ||
254 | 274 | ||
255 | - | @Callable( | |
256 | - | func setManager ( | |
257 | - | let | |
258 | - | if (( | |
275 | + | @Callable(C) | |
276 | + | func setManager (ak) = { | |
277 | + | let I = B(C) | |
278 | + | if ((I == I)) | |
259 | 279 | then { | |
260 | - | let | |
261 | - | if (( | |
262 | - | then [StringEntry(e(), | |
280 | + | let al = fromBase58String(ak) | |
281 | + | if ((al == al)) | |
282 | + | then [StringEntry(e(), ak)] | |
263 | 283 | else throw("Strict value is not equal to itself.") | |
264 | 284 | } | |
265 | 285 | else throw("Strict value is not equal to itself.") | |
266 | 286 | } | |
267 | 287 | ||
268 | 288 | ||
269 | 289 | ||
270 | - | @Callable( | |
290 | + | @Callable(C) | |
271 | 291 | func confirmManager () = { | |
272 | - | let | |
273 | - | let | |
292 | + | let am = y() | |
293 | + | let an = if (isDefined(am)) | |
274 | 294 | then true | |
275 | - | else | |
276 | - | if (( | |
295 | + | else z("no pending manager") | |
296 | + | if ((an == an)) | |
277 | 297 | then { | |
278 | - | let | |
298 | + | let ao = if ((C.callerPublicKey == value(am))) | |
279 | 299 | then true | |
280 | - | else | |
281 | - | if (( | |
282 | - | then [StringEntry(d(), toBase58String(value( | |
300 | + | else z("you are not pending manager") | |
301 | + | if ((ao == ao)) | |
302 | + | then [StringEntry(d(), toBase58String(value(am))), DeleteEntry(e())] | |
283 | 303 | else throw("Strict value is not equal to itself.") | |
284 | 304 | } | |
285 | 305 | else throw("Strict value is not equal to itself.") | |
286 | 306 | } | |
287 | 307 | ||
288 | 308 | ||
289 | - | @Verifier( | |
290 | - | func | |
291 | - | let | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
309 | + | @Verifier(ap) | |
310 | + | func aq () = { | |
311 | + | let ar = { | |
312 | + | let w = v() | |
313 | + | if ($isInstanceOf(w, "ByteVector")) | |
294 | 314 | then { | |
295 | - | let | |
296 | - | | |
315 | + | let E = w | |
316 | + | E | |
297 | 317 | } | |
298 | - | else if ($isInstanceOf( | |
299 | - | then | |
318 | + | else if ($isInstanceOf(w, "Unit")) | |
319 | + | then ap.senderPublicKey | |
300 | 320 | else throw("Match error") | |
301 | 321 | } | |
302 | - | sigVerify( | |
322 | + | sigVerify(ap.bodyBytes, ap.proofs[0], ar) | |
303 | 323 | } | |
304 | 324 |
github/deemru/w8io/169f3d6 110.75 ms ◑