tx · F7jSwEifyEzaJafyMkayZcDsHjn7NvNhVETn8miV9QcV 3N8icXyy8nP599uu4C5Tydn7qwU8y9V2dP5: -0.02100000 Waves 2023.01.06 03:12 [2392359] smart account 3N8icXyy8nP599uu4C5Tydn7qwU8y9V2dP5 > SELF 0.00000000 Waves
{ "type": 13, "id": "F7jSwEifyEzaJafyMkayZcDsHjn7NvNhVETn8miV9QcV", "fee": 2100000, "feeAssetId": null, "timestamp": 1672963959584, "version": 2, "chainId": 84, "sender": "3N8icXyy8nP599uu4C5Tydn7qwU8y9V2dP5", "senderPublicKey": "7g2oH3HDdgHMD6FU9M7WneDyHy7VzFBYp8VswdpHQa85", "proofs": [ "3pps9rKqF7Uv4EstwjJpYfdjGZXcTymtYahbACs5qono2yqwPz7p981njwCGSK3t1kXut569rd9kjZjhz5W9iYxj" ], "script": "base64:BgJHCAISBAoCCAgSBAoCCAgSBgoECAgIBBIFCgMICAESBQoDBAgIEgYKBAQICAESBAoCCAgSAwoBCBIDCgEIEgQKAgEIEgMKAQgsAAxhZG1pbkFkZHJlc3MCIzNQTFZQb0I2S3NYQ3Rxb3doeldKU3Rpak53N1Nqc1BLc3E2AAVBZG1pbgkBB0FkZHJlc3MBCQDZBAEFDGFkbWluQWRkcmVzcwAFd2F2ZXMCBVdBVkVTAAZhV2F2ZXMCDGFjY2VwdF93YXZlcwAFV0FWRVMFBHVuaXQABm5mZXRBYwIMYWN0aXZhdGVfbmZ0AARtYWluAgptYWluX2Fzc2V0AAFsAglscF9hc3NldF8AA2FhMQIGcG9vbF9fAAJzYQIPU1RBS0lOR19BTU9VTlRfAAJsYQINTEVBU0VfQU1PVU5UXwACaXgCA0lEXwAHcmF0ZUZlZQIYcGVyY2VudGFnZV9yYXRlX2ZlZV9zd2FwAAxyYXRlRmVlTGltaXQCDnJhdGVfZmVlX2xpbWl0AA1yYXRlRmVlSGVpZ2h0Ag9yYXRlX2ZlZV9oZWlnaHQADmRlcG9zaXRfaGVpZ2h0AhJEZXBvc2l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QIkZEFwcCBpcyBjdXJyZW50bHkgdW5kZXIgbWFpbnRlbmFuY2UuAWkBEENyZWF0ZUNvbGxlY3Rpb24BDmNvbGxlY3Rpb25OYW1lBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAnRjBAckbWF0Y2gwCQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzCQCsAgIFCmN1cnJlbnRLZXkCEV90b3RhbF9jb2xsZWN0aW9uAwkAAQIFByRtYXRjaDACA0ludAQCYWkFByRtYXRjaDAFAmFpAAADCQEVdmVyaWZpQ29sbGVjdGlvbkV4aXN0AQUOY29sbGVjdGlvbk5hbWUJAAIBAkNFcnJvcjogQSBjb2xsZWN0aW9uIHdpdGggdGhhdCBuYW1lIGFscmVhZHkgZXhpc3RzLCB0cnkgYW5vdGhlciBvbmUuCQDMCAIJAQtTdHJpbmdFbnRyeQIFDmNvbGxlY3Rpb25OYW1lBQpjdXJyZW50S2V5CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCmN1cnJlbnRLZXkCEV90b3RhbF9jb2xsZWN0aW9uCQBkAgUCdGMAAQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlefOJwVI=", "height": 2392359, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BDuVYzSWcXc3Vm6kdnQkVW56UbSDdKh6AJ7Frmmi5Fbo Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "3PLVPoB6KsXCtqowhzWJStijNw7SjsPKsq6" | |
5 | + | ||
6 | + | let b = Address(fromBase58String(a)) | |
7 | + | ||
8 | + | let c = "WAVES" | |
9 | + | ||
10 | + | let d = "accept_waves" | |
11 | + | ||
12 | + | let e = unit | |
13 | + | ||
14 | + | let f = "activate_nft" | |
15 | + | ||
16 | + | let g = "main_asset" | |
17 | + | ||
18 | + | let h = "lp_asset_" | |
19 | + | ||
20 | + | let i = "pool__" | |
21 | + | ||
22 | + | let j = "STAKING_AMOUNT_" | |
23 | + | ||
24 | + | let k = "LEASE_AMOUNT_" | |
25 | + | ||
26 | + | let l = "ID_" | |
27 | + | ||
28 | + | let m = "percentage_rate_fee_swap" | |
29 | + | ||
30 | + | let n = "rate_fee_limit" | |
31 | + | ||
32 | + | let o = "rate_fee_height" | |
33 | + | ||
34 | + | let p = "Deposit_Height_Of_" | |
35 | + | ||
36 | + | let q = "activate" | |
37 | + | ||
38 | + | let r = "activate_pools" | |
39 | + | ||
40 | + | let s = "activate_swap" | |
41 | + | ||
42 | + | let t = "activate_liquidity" | |
43 | + | ||
44 | + | let u = "block_distribuition" | |
45 | + | ||
46 | + | let v = pow(10, 0, 8, 0, 0, HALFUP) | |
47 | + | ||
48 | + | let w = "Total_Tokens_Locked_" | |
49 | + | ||
50 | + | let x = "Smart contract admin has not yet been initialized." | |
51 | + | ||
52 | + | func y (z) = value(assetInfo(z)).decimals | |
53 | + | ||
54 | + | ||
55 | + | func A (z,B) = pow(10, 0, (z - B), 0, 0, HALFUP) | |
56 | + | ||
57 | + | ||
58 | + | func C (z) = pow(10, 0, value(assetInfo(z)).decimals, 0, 0, HALFUP) | |
59 | + | ||
60 | + | ||
61 | + | func D (E,F,G) = if (if ((E == e)) | |
62 | + | then (F == c) | |
63 | + | else false) | |
64 | + | then if (G) | |
65 | + | then true | |
66 | + | else throw("The smart contract does not currently support Waves.") | |
67 | + | else if ((E == fromBase58String(F))) | |
68 | + | then true | |
69 | + | else false | |
70 | + | ||
71 | + | ||
72 | + | func H (I) = { | |
73 | + | let J = I | |
74 | + | if ($isInstanceOf(J, "ByteVector")) | |
75 | + | then { | |
76 | + | let I = J | |
77 | + | toBase58String(I) | |
78 | + | } | |
79 | + | else throw("Requires NFT as payment for sale.") | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | func K (L,M) = (((i + L) + "_") + M) | |
84 | + | ||
85 | + | ||
86 | + | func N (O) = { | |
87 | + | let J = getInteger(this, O) | |
88 | + | if ($isInstanceOf(J, "Int")) | |
89 | + | then { | |
90 | + | let z = J | |
91 | + | z | |
92 | + | } | |
93 | + | else false | |
94 | + | } | |
95 | + | ||
96 | + | ||
97 | + | func P (Q,O) = { | |
98 | + | let J = getInteger(this, ((O + "_") + Q)) | |
99 | + | if ($isInstanceOf(J, "Int")) | |
100 | + | then { | |
101 | + | let R = J | |
102 | + | R | |
103 | + | } | |
104 | + | else 0 | |
105 | + | } | |
106 | + | ||
107 | + | ||
108 | + | func S (Q,O,T) = { | |
109 | + | let J = getInteger(this, ((((Q + "_") + O) + "_") + T)) | |
110 | + | if ($isInstanceOf(J, "Int")) | |
111 | + | then { | |
112 | + | let I = J | |
113 | + | I | |
114 | + | } | |
115 | + | else 0 | |
116 | + | } | |
117 | + | ||
118 | + | ||
119 | + | func U (O,T) = { | |
120 | + | let J = getInteger(this, ((O + "_") + T)) | |
121 | + | if ($isInstanceOf(J, "Int")) | |
122 | + | then { | |
123 | + | let I = J | |
124 | + | I | |
125 | + | } | |
126 | + | else 1 | |
127 | + | } | |
128 | + | ||
129 | + | ||
130 | + | func V (I) = { | |
131 | + | let J = getStringValue(this, I) | |
132 | + | if ($isInstanceOf(J, "String")) | |
133 | + | then { | |
134 | + | let B = J | |
135 | + | true | |
136 | + | } | |
137 | + | else false | |
138 | + | } | |
139 | + | ||
140 | + | ||
141 | + | func W (X) = { | |
142 | + | let J = assetInfo(X) | |
143 | + | if ($isInstanceOf(J, "Asset")) | |
144 | + | then { | |
145 | + | let T = J | |
146 | + | T.name | |
147 | + | } | |
148 | + | else throw("Can't find asset") | |
149 | + | } | |
150 | + | ||
151 | + | ||
152 | + | func Y (I) = { | |
153 | + | let J = assetInfo(I) | |
154 | + | if ($isInstanceOf(J, "Asset")) | |
155 | + | then { | |
156 | + | let T = J | |
157 | + | T.issuer | |
158 | + | } | |
159 | + | else throw("Can't find asset") | |
160 | + | } | |
161 | + | ||
162 | + | ||
163 | + | func Z (O,aa) = { | |
164 | + | let J = getInteger(this, O) | |
165 | + | if ($isInstanceOf(J, "Int")) | |
166 | + | then { | |
167 | + | let I = J | |
168 | + | I | |
169 | + | } | |
170 | + | else if (aa) | |
171 | + | then v | |
172 | + | else 1 | |
173 | + | } | |
174 | + | ||
175 | + | ||
176 | + | func ab (ac,ad,ae) = { | |
177 | + | let af = if ((ad == c)) | |
178 | + | then e | |
179 | + | else fromBase58String(ad) | |
180 | + | let ag = if ((ae == c)) | |
181 | + | then e | |
182 | + | else fromBase58String(ae) | |
183 | + | if ((ac == af)) | |
184 | + | then ag | |
185 | + | else af | |
186 | + | } | |
187 | + | ||
188 | + | ||
189 | + | func ah (ai,aj,Q) = (((p + K(ai, aj)) + "_") + Q) | |
190 | + | ||
191 | + | ||
192 | + | func ak (X) = { | |
193 | + | let J = getInteger(this, X) | |
194 | + | if ($isInstanceOf(J, "Int")) | |
195 | + | then { | |
196 | + | let z = J | |
197 | + | z | |
198 | + | } | |
199 | + | else 0 | |
200 | + | } | |
201 | + | ||
202 | + | ||
203 | + | func al () = fromBase58String(getStringValue(b, g)) | |
204 | + | ||
205 | + | ||
206 | + | func am () = getIntegerValue(b, m) | |
207 | + | ||
208 | + | ||
209 | + | func an (Q,O) = { | |
210 | + | let J = getInteger(this, ((("STAKE_LP_" + Q) + "_") + O)) | |
211 | + | if ($isInstanceOf(J, "Int")) | |
212 | + | then { | |
213 | + | let I = J | |
214 | + | I | |
215 | + | } | |
216 | + | else 0 | |
217 | + | } | |
218 | + | ||
219 | + | ||
220 | + | @Callable(z) | |
221 | + | func Swap (ai,aj) = { | |
222 | + | let ao = toBase58String(z.caller.bytes) | |
223 | + | let G = getBooleanValue(b, d) | |
224 | + | let ap = getBooleanValue(b, q) | |
225 | + | let aq = getBooleanValue(b, s) | |
226 | + | let ar = K(ai, aj) | |
227 | + | let O = N(ar) | |
228 | + | let L = z.payments[0].assetId | |
229 | + | let M = z.payments[1].assetId | |
230 | + | let as = getIntegerValue(this, (h + K(ai, aj))) | |
231 | + | let at = Z(((K(ai, aj) + "_") + ai), false) | |
232 | + | let au = Z(((K(ai, aj) + "_") + aj), false) | |
233 | + | let av = getIntegerValue(b, m) | |
234 | + | let aw = (toBigInt(z.payments[0].amount) * fraction(toBigInt(v), toBigInt(au), toBigInt(at))) | |
235 | + | let ax = toInt(((aw - ((aw / toBigInt(av)) * toBigInt(100))) / toBigInt(v))) | |
236 | + | let ay = (toBigInt(z.payments[0].amount) * fraction(toBigInt(v), toBigInt(at), toBigInt(au))) | |
237 | + | let az = toInt(((ay - ((ay / toBigInt(av)) * toBigInt(100))) / toBigInt(v))) | |
238 | + | let aA = if (if ((L == e)) | |
239 | + | then (ai == c) | |
240 | + | else false) | |
241 | + | then ax | |
242 | + | else if ((L == fromBase58String(ai))) | |
243 | + | then ax | |
244 | + | else az | |
245 | + | let aB = if ((L == e)) | |
246 | + | then c | |
247 | + | else if ((L == fromBase58String(ai))) | |
248 | + | then ai | |
249 | + | else aj | |
250 | + | let aC = if ((L == e)) | |
251 | + | then c | |
252 | + | else if ((L == fromBase58String(ai))) | |
253 | + | then aj | |
254 | + | else ai | |
255 | + | let aD = ab(z.payments[0].assetId, ai, aj) | |
256 | + | let aE = (U(K(ai, aj), aC) - aA) | |
257 | + | let aF = (ak(aC) - aA) | |
258 | + | let aG = if ((0 > aE)) | |
259 | + | then 0 | |
260 | + | else aE | |
261 | + | let aH = if ((0 > aF)) | |
262 | + | then 0 | |
263 | + | else aF | |
264 | + | let aI = { | |
265 | + | let J = z.payments[0].assetId | |
266 | + | if ($isInstanceOf(J, "Unit")) | |
267 | + | then { | |
268 | + | let B = J | |
269 | + | pow(10, 0, 8, 0, 0, HALFUP) | |
270 | + | } | |
271 | + | else if ($isInstanceOf(J, "ByteVector")) | |
272 | + | then { | |
273 | + | let aJ = J | |
274 | + | pow(10, 0, value(assetInfo(aJ)).decimals, 0, 0, HALFUP) | |
275 | + | } | |
276 | + | else throw("Match error") | |
277 | + | } | |
278 | + | if (ap) | |
279 | + | then if (!(aq)) | |
280 | + | then if (if (!((ai == aj))) | |
281 | + | then if (D(L, ai, G)) | |
282 | + | then true | |
283 | + | else D(L, aj, G) | |
284 | + | else false) | |
285 | + | then if ((O != false)) | |
286 | + | then if ((z.payments[1].assetId == al())) | |
287 | + | then if ((z.payments[1].amount == am())) | |
288 | + | then if (if ((at > 2)) | |
289 | + | then true | |
290 | + | else (au > 2)) | |
291 | + | then { | |
292 | + | let aK = { | |
293 | + | let J = getInteger(this, (ar + "_rate_fee_swap")) | |
294 | + | if ($isInstanceOf(J, "Int")) | |
295 | + | then { | |
296 | + | let B = J | |
297 | + | (B + am()) | |
298 | + | } | |
299 | + | else am() | |
300 | + | } | |
301 | + | [ScriptTransfer(Address(z.caller.bytes), if ((0 > aA)) | |
302 | + | then aI | |
303 | + | else aA, aD), IntegerEntry(aC, aH), IntegerEntry(((K(ai, aj) + "_") + aC), aG), IntegerEntry(((K(ai, aj) + "_") + aB), (U(K(ai, aj), aB) + z.payments[0].amount)), IntegerEntry(aB, (ak(aB) + z.payments[0].amount)), IntegerEntry(toBase58String(al()), (ak(toBase58String(al())) + z.payments[1].amount)), IntegerEntry((ar + "_rate_fee_swap"), aK)] | |
304 | + | } | |
305 | + | else throw("Pool has no liquidity.") | |
306 | + | else throw((("Swap denied! " + toString(am())) + " Bicon is required for the swap fee.")) | |
307 | + | else throw("Invalid rate asset") | |
308 | + | else throw("Invalid Swap Key.") | |
309 | + | else throw("Asset1 cannot be equal to Asset2") | |
310 | + | else throw("Swap is currently under maintenance.") | |
311 | + | else throw("dApp is currently under maintenance.") | |
312 | + | } | |
313 | + | ||
314 | + | ||
315 | + | ||
316 | + | @Callable(z) | |
317 | + | func AddLiquidity (ai,aj) = { | |
318 | + | let ap = getBooleanValue(b, q) | |
319 | + | let aL = getBooleanValue(b, r) | |
320 | + | let G = getBooleanValue(b, d) | |
321 | + | let O = N(K(ai, aj)) | |
322 | + | let L = z.payments[0].assetId | |
323 | + | let M = z.payments[1].assetId | |
324 | + | let as = getStringValue(this, (h + K(ai, aj))) | |
325 | + | let aM = if ((2 > Z(((K(ai, aj) + "_") + ai), false))) | |
326 | + | then z.payments[0].amount | |
327 | + | else Z(((K(ai, aj) + "_") + ai), false) | |
328 | + | let aN = if ((2 > Z(((K(ai, aj) + "_") + ai), false))) | |
329 | + | then z.payments[1].amount | |
330 | + | else Z(((K(ai, aj) + "_") + aj), false) | |
331 | + | let aO = Z(as, true) | |
332 | + | let aP = ((aM + aN) / aO) | |
333 | + | let aQ = (z.payments[0].amount * (aN / aM)) | |
334 | + | let aR = (z.payments[1].amount + ((z.payments[1].amount * 2) / 100)) | |
335 | + | let aS = (z.payments[1].amount - ((z.payments[1].amount * 2) / 100)) | |
336 | + | let aT = if (if (if ((z.payments[1].amount == aQ)) | |
337 | + | then true | |
338 | + | else (aR > z.payments[1].amount)) | |
339 | + | then true | |
340 | + | else (z.payments[1].amount > aS)) | |
341 | + | then true | |
342 | + | else false | |
343 | + | if (ap) | |
344 | + | then if (!(aL)) | |
345 | + | then if (if (if (!((L == M))) | |
346 | + | then D(L, ai, G) | |
347 | + | else false) | |
348 | + | then D(M, aj, G) | |
349 | + | else false) | |
350 | + | then if ((O != false)) | |
351 | + | then if (aT) | |
352 | + | then { | |
353 | + | let ao = toBase58String(z.caller.bytes) | |
354 | + | let aU = P(ao, K(ai, aj)) | |
355 | + | let aV = S(ao, K(ai, aj), ai) | |
356 | + | let aW = S(ao, K(ai, aj), aj) | |
357 | + | let aX = U(K(ai, aj), ai) | |
358 | + | let aY = U(K(ai, aj), aj) | |
359 | + | let aZ = if ((aM == z.payments[0].amount)) | |
360 | + | then (1 * v) | |
361 | + | else toInt((((toBigInt(z.payments[0].amount) * toBigInt(v)) + (toBigInt(z.payments[1].amount) * toBigInt(v))) / (((toBigInt(aM) * toBigInt(v)) + (toBigInt(aN) * toBigInt(v))) / toBigInt(aO)))) | |
362 | + | let ba = (aV + z.payments[0].amount) | |
363 | + | let bb = (aW + z.payments[1].amount) | |
364 | + | let bc = (aU + aZ) | |
365 | + | let bd = (aX + z.payments[0].amount) | |
366 | + | let be = (aY + z.payments[1].amount) | |
367 | + | [Reissue(fromBase58String(as), aZ, true), ScriptTransfer(Address(z.caller.bytes), aZ, fromBase58String(as)), IntegerEntry(ah(ai, aj, ao), height), IntegerEntry(((((ao + "_") + K(ai, aj)) + "_") + ai), ba), IntegerEntry(((((ao + "_") + K(ai, aj)) + "_") + aj), bb), IntegerEntry(((K(ai, aj) + "_") + ao), bc), IntegerEntry(((K(ai, aj) + "_") + ai), bd), IntegerEntry(((K(ai, aj) + "_") + aj), be), IntegerEntry(ai, (ak(ai) + z.payments[0].amount)), IntegerEntry(aj, (ak(aj) + z.payments[1].amount)), IntegerEntry(as, (ak(as) + aZ))] | |
368 | + | } | |
369 | + | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((z.payments[0].amount * (aN / aM)))) + "} Received: ") + toString(z.payments[1].amount)) + " Validate: ") + toString(aT))) | |
370 | + | else throw("Invalid Pool Key.") | |
371 | + | else throw("Asset1 cannot be equal to Asset2") | |
372 | + | else throw("liquidity is currently under maintenance.") | |
373 | + | else throw("dApp is currently under maintenance.") | |
374 | + | } | |
375 | + | ||
376 | + | ||
377 | + | ||
378 | + | @Callable(z) | |
379 | + | func ActivatePool (L,M,bf,bg) = { | |
380 | + | let bh = if ((L == c)) | |
381 | + | then c | |
382 | + | else W(fromBase58String(L)) | |
383 | + | let bi = if ((M == c)) | |
384 | + | then c | |
385 | + | else W(fromBase58String(M)) | |
386 | + | let bj = if (bg) | |
387 | + | then bf | |
388 | + | else ((bh + "_") + bi) | |
389 | + | let O = N(K(L, M)) | |
390 | + | if ((z.caller == Y(fromBase58String(L)))) | |
391 | + | then if ((O != false)) | |
392 | + | then { | |
393 | + | let bk = Issue(bj, ((("LP asset for pool liquidity in Bicon DEX pair " + L) + "_") + M), (1 * v), 8, true) | |
394 | + | let bl = calculateAssetId(bk) | |
395 | + | [StringEntry((h + K(L, M)), toBase58String(bl)), bk] | |
396 | + | } | |
397 | + | else throw("Invalid Pool Key. Try inverting the assets") | |
398 | + | else throw("Only the issuer address of asset1 itself can invoke this function.") | |
399 | + | } | |
400 | + | ||
401 | + | ||
402 | + | ||
403 | + | @Callable(z) | |
404 | + | func RemoveLiquidity (ai,aj,bm) = { | |
405 | + | let ao = toBase58String(z.caller.bytes) | |
406 | + | let ap = getBooleanValue(b, q) | |
407 | + | let aL = getBooleanValue(b, r) | |
408 | + | let G = getBooleanValue(b, d) | |
409 | + | let ar = K(ai, aj) | |
410 | + | let O = N(ar) | |
411 | + | let L = if ((ai == c)) | |
412 | + | then if (G) | |
413 | + | then e | |
414 | + | else throw("The smart contract does not currently support Waves.") | |
415 | + | else fromBase58String(ai) | |
416 | + | let M = if ((aj == c)) | |
417 | + | then if (G) | |
418 | + | then e | |
419 | + | else throw("The smart contract does not currently support Waves.") | |
420 | + | else fromBase58String(aj) | |
421 | + | let as = getStringValue(this, (h + K(ai, aj))) | |
422 | + | let aU = P(ao, K(ai, aj)) | |
423 | + | let bn = an(ao, ar) | |
424 | + | let bo = Z(as, true) | |
425 | + | let aM = Z(((K(ai, aj) + "_") + ai), false) | |
426 | + | let aN = Z(((K(ai, aj) + "_") + aj), false) | |
427 | + | if (ap) | |
428 | + | then if (!(aL)) | |
429 | + | then if (!((ai == aj))) | |
430 | + | then if ((O != false)) | |
431 | + | then if (!((aU == 0))) | |
432 | + | then if (((aU - bn) >= bm)) | |
433 | + | then if (if ((aM > 2)) | |
434 | + | then true | |
435 | + | else (aN > 2)) | |
436 | + | then { | |
437 | + | let bp = (toInt(((fraction(toBigInt(z.payments[0].amount), toBigInt(v), toBigInt(bo)) * toBigInt(aM)) / toBigInt(v))) - 1) | |
438 | + | let bq = (toInt(((fraction(toBigInt(z.payments[0].amount), toBigInt(v), toBigInt(bo)) * toBigInt(aN)) / toBigInt(v))) - 1) | |
439 | + | let aX = U(K(ai, aj), ai) | |
440 | + | let aY = U(K(ai, aj), aj) | |
441 | + | let aV = S(ao, K(ai, aj), ai) | |
442 | + | let aW = S(ao, K(ai, aj), aj) | |
443 | + | let ba = (aV - bp) | |
444 | + | let bb = (aW - bq) | |
445 | + | let bc = (aU - bm) | |
446 | + | let bd = (aX - bp) | |
447 | + | let be = (aY - bq) | |
448 | + | if ((z.payments[0].assetId == fromBase58String(as))) | |
449 | + | then if ((bm == z.payments[0].amount)) | |
450 | + | then [Burn(fromBase58String(as), bm), ScriptTransfer(Address(z.caller.bytes), bp, L), ScriptTransfer(Address(z.caller.bytes), bq, M), IntegerEntry(ah(ai, aj, ao), height), IntegerEntry(((((ao + "_") + K(ai, aj)) + "_") + ai), ba), IntegerEntry(((((ao + "_") + K(ai, aj)) + "_") + aj), bb), IntegerEntry(((K(ai, aj) + "_") + ao), bc), IntegerEntry(((K(ai, aj) + "_") + ai), bd), IntegerEntry(((K(ai, aj) + "_") + aj), be), IntegerEntry(ai, (ak(ai) - bp)), IntegerEntry(aj, (ak(aj) - bq)), IntegerEntry(as, (ak(as) - bm))] | |
451 | + | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(bm))) | |
452 | + | else throw("Requires an lp asset as payment to remove locked amounts.") | |
453 | + | } | |
454 | + | else throw("Pool has no liquidity.") | |
455 | + | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(bm))) | |
456 | + | else throw("You have no locked values in the pool") | |
457 | + | else throw("Invalid Pool Key.") | |
458 | + | else throw("Asset1 cannot be equal to Asset2") | |
459 | + | else throw("liquidity is currently under maintenance.") | |
460 | + | else throw("dApp is currently under maintenance.") | |
461 | + | } | |
462 | + | ||
463 | + | ||
464 | + | ||
465 | + | @Callable(z) | |
466 | + | func Stake (br,ai,aj) = { | |
467 | + | let ap = getBooleanValue(b, q) | |
468 | + | let bs = getBooleanValue(b, t) | |
469 | + | let as = if (br) | |
470 | + | then getStringValue(b, (h + K(ai, aj))) | |
471 | + | else al() | |
472 | + | let bt = { | |
473 | + | let J = as | |
474 | + | if ($isInstanceOf(J, "String")) | |
475 | + | then { | |
476 | + | let bu = J | |
477 | + | fromBase58String(bu) | |
478 | + | } | |
479 | + | else if ($isInstanceOf(J, "ByteVector")) | |
480 | + | then { | |
481 | + | let aJ = J | |
482 | + | aJ | |
483 | + | } | |
484 | + | else throw("Match error") | |
485 | + | } | |
486 | + | if (ap) | |
487 | + | then if (!(bs)) | |
488 | + | then if ((z.payments[0].assetId != bt)) | |
489 | + | then throw((("Invalid asset! Kindly Deposit Only " + toBase58String(al())) + " or valid asset lp")) | |
490 | + | else if (!(br)) | |
491 | + | then { | |
492 | + | let ao = toBase58String(z.caller.bytes) | |
493 | + | let aU = { | |
494 | + | let J = getInteger(this, ao) | |
495 | + | if ($isInstanceOf(J, "Int")) | |
496 | + | then { | |
497 | + | let I = J | |
498 | + | I | |
499 | + | } | |
500 | + | else 0 | |
501 | + | } | |
502 | + | let bv = if ((aU == 0)) | |
503 | + | then height | |
504 | + | else valueOrElse(getIntegerValue(this, (p + ao)), height) | |
505 | + | let bw = (aU + z.payments[0].amount) | |
506 | + | let bx = IntegerEntry(ao, bw) | |
507 | + | let by = IntegerEntry((p + ao), bv) | |
508 | + | let bz = { | |
509 | + | let J = getInteger(this, "Total_Tokens_Locked:") | |
510 | + | if ($isInstanceOf(J, "Int")) | |
511 | + | then { | |
512 | + | let I = J | |
513 | + | I | |
514 | + | } | |
515 | + | else 0 | |
516 | + | } | |
517 | + | let bA = (bz + z.payments[0].amount) | |
518 | + | let bB = IntegerEntry("Total_Tokens_Locked:", bA) | |
519 | + | [bx, by, bB] | |
520 | + | } | |
521 | + | else { | |
522 | + | let ar = K(ai, aj) | |
523 | + | let O = N(ar) | |
524 | + | if ((O != false)) | |
525 | + | then { | |
526 | + | let ao = toBase58String(z.caller.bytes) | |
527 | + | let aU = { | |
528 | + | let J = getInteger(this, ((("STAKE_LP_" + ao) + "_") + ar)) | |
529 | + | if ($isInstanceOf(J, "Int")) | |
530 | + | then { | |
531 | + | let I = J | |
532 | + | I | |
533 | + | } | |
534 | + | else 0 | |
535 | + | } | |
536 | + | let bv = if ((aU == 0)) | |
537 | + | then height | |
538 | + | else valueOrElse(getIntegerValue(this, ((((p + "_") + ao) + "_") + ar)), height) | |
539 | + | let bw = (aU + z.payments[0].amount) | |
540 | + | let bx = IntegerEntry(((("STAKE_LP_" + ao) + "_") + ar), bw) | |
541 | + | let by = IntegerEntry(((((p + "_") + ao) + "_") + ar), height) | |
542 | + | let bz = { | |
543 | + | let J = getInteger(this, ("Total_Tokens_LP_Locked_" + ar)) | |
544 | + | if ($isInstanceOf(J, "Int")) | |
545 | + | then { | |
546 | + | let I = J | |
547 | + | I | |
548 | + | } | |
549 | + | else 0 | |
550 | + | } | |
551 | + | let bA = (bz + z.payments[0].amount) | |
552 | + | let bB = IntegerEntry(("Total_Tokens_LP_Locked_" + ar), bA) | |
553 | + | [bx, by, bB] | |
554 | + | } | |
555 | + | else throw("Invalid Pool key.") | |
556 | + | } | |
557 | + | else throw("liquidity is currently under maintenance.") | |
558 | + | else throw("dApp is currently under maintenance.") | |
559 | + | } | |
560 | + | ||
561 | + | ||
562 | + | ||
563 | + | @Callable(z) | |
564 | + | func Unstake (br,ai,aj,bC) = { | |
565 | + | let ap = getBooleanValue(b, q) | |
566 | + | let bs = getBooleanValue(b, t) | |
567 | + | let ar = K(ai, aj) | |
568 | + | let bD = z.payments[0] | |
569 | + | if (ap) | |
570 | + | then if (!(bs)) | |
571 | + | then { | |
572 | + | let ao = toBase58String(z.caller.bytes) | |
573 | + | let aU = { | |
574 | + | let J = if (br) | |
575 | + | then getIntegerValue(this, ((("STAKE_LP_" + ao) + "_") + K(ai, aj))) | |
576 | + | else getIntegerValue(this, ao) | |
577 | + | if ($isInstanceOf(J, "Int")) | |
578 | + | then { | |
579 | + | let I = J | |
580 | + | I | |
581 | + | } | |
582 | + | else 0 | |
583 | + | } | |
584 | + | let bE = if (br) | |
585 | + | then ((((p + "_") + ao) + "_") + K(ai, aj)) | |
586 | + | else (p + ao) | |
587 | + | let bz = if (br) | |
588 | + | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + K(ai, aj))) | |
589 | + | else getIntegerValue(this, "Total_Tokens_Locked:") | |
590 | + | let bA = (bz - bC) | |
591 | + | let bF = (height - getIntegerValue(this, bE)) | |
592 | + | let bG = getIntegerValue(this, u) | |
593 | + | let bH = ((bF * bG) * v) | |
594 | + | let bI = { | |
595 | + | let J = getInteger((ar + "_rate_fee_swap")) | |
596 | + | if ($isInstanceOf(J, "Int")) | |
597 | + | then { | |
598 | + | let bJ = J | |
599 | + | bJ | |
600 | + | } | |
601 | + | else 0 | |
602 | + | } | |
603 | + | let bK = { | |
604 | + | let J = getInteger((ar + "_rate_fee_swap")) | |
605 | + | if ($isInstanceOf(J, "Int")) | |
606 | + | then { | |
607 | + | let bL = J | |
608 | + | (bL / (bz / bC)) | |
609 | + | } | |
610 | + | else 0 | |
611 | + | } | |
612 | + | let bM = if ((ai == getStringValue(this, g))) | |
613 | + | then (bH / (bz / bC)) | |
614 | + | else bK | |
615 | + | if ((0 > bC)) | |
616 | + | then throw(if (br) | |
617 | + | then (((("Can't withdraw negative " + ai) + "/") + aj) + " amount") | |
618 | + | else "Can't withdraw negative AxAi amount") | |
619 | + | else { | |
620 | + | let bw = (aU - bC) | |
621 | + | if ((0 > bw)) | |
622 | + | then throw(if (br) | |
623 | + | then (((("Not enough Asset Lp " + ai) + "/") + aj) + " balance") | |
624 | + | else "Not enough AxAi balance") | |
625 | + | else [IntegerEntry(if (br) | |
626 | + | then ((("STAKE_LP_" + ao) + "_") + K(ai, aj)) | |
627 | + | else ao, bw), IntegerEntry(if (br) | |
628 | + | then ("Total_Tokens_LP_Locked_" + K(ai, aj)) | |
629 | + | else "Total_Tokens_Locked:", bA), ScriptTransfer(z.caller, bC, if (br) | |
630 | + | then fromBase58String(getStringValue(this, (h + K(ai, aj)))) | |
631 | + | else al()), ScriptTransfer(z.caller, bM, al()), IntegerEntry((ar + "_rate_fee_swap"), (bI - bK))] | |
632 | + | } | |
633 | + | } | |
634 | + | else throw("liquidity is currently under maintenance.") | |
635 | + | else throw("dApp is currently under maintenance.") | |
636 | + | } | |
637 | + | ||
638 | + | ||
639 | + | ||
640 | + | @Callable(z) | |
641 | + | func CreateNFT (bj,bN) = { | |
642 | + | let bO = sha256(fromBase58String(bN)) | |
643 | + | [Issue(bj, (((("{'ipfs':'" + bN) + "','SHA-HASH':'") + toBase58String(bO)) + "'}"), 1, 0, false)] | |
644 | + | } | |
645 | + | ||
646 | + | ||
647 | + | ||
648 | + | @Callable(z) | |
649 | + | func BuyNFT (bP) = { | |
650 | + | let ap = getBooleanValue(b, q) | |
651 | + | let bQ = getBooleanValue(b, f) | |
652 | + | let bD = z.payments[0] | |
653 | + | let bR = { | |
654 | + | let J = getIntegerValue(this, (bP + "_tosale")) | |
655 | + | if ($isInstanceOf(J, "Int")) | |
656 | + | then { | |
657 | + | let bS = J | |
658 | + | bS | |
659 | + | } | |
660 | + | else 0 | |
661 | + | } | |
662 | + | let T = { | |
663 | + | let J = getStringValue(this, (bP + "_assetsale")) | |
664 | + | if ($isInstanceOf(J, "String")) | |
665 | + | then { | |
666 | + | let bT = J | |
667 | + | if (if ((bT == "WAVES")) | |
668 | + | then true | |
669 | + | else (bT == "waves")) | |
670 | + | then e | |
671 | + | else fromBase58String(bT) | |
672 | + | } | |
673 | + | else throw("NFT not listed for sale") | |
674 | + | } | |
675 | + | let bU = { | |
676 | + | let J = getStringValue(this, (bP + "_address")) | |
677 | + | if ($isInstanceOf(J, "String")) | |
678 | + | then { | |
679 | + | let bT = J | |
680 | + | bT | |
681 | + | } | |
682 | + | else throw("NFT not listed for sale") | |
683 | + | } | |
684 | + | if (ap) | |
685 | + | then if (!(bQ)) | |
686 | + | then if ((bR != 0)) | |
687 | + | then if ((bR == bD.amount)) | |
688 | + | then if ((bD.assetId == T)) | |
689 | + | then [IntegerEntry((bP + "_tosale"), 0), BooleanEntry((bP + "_saled"), true), StringEntry((bP + "_address_SAle"), ""), StringEntry((bP + "_assetsale"), bP), StringEntry((bP + "_address"), toBase58String(z.caller.bytes)), ScriptTransfer(z.caller, 1, fromBase58String(bP)), ScriptTransfer(Address(fromBase58String(bU)), bD.amount, T)] | |
690 | + | else throw("Asset not equal to the asset defined as a payment method by the NFT issuer") | |
691 | + | else throw("Value not equal to sale value") | |
692 | + | else throw("This NFT is not for sale.") | |
693 | + | else throw("NFT is currently under maintenance.") | |
694 | + | else throw("dApp is currently under maintenance.") | |
695 | + | } | |
696 | + | ||
697 | + | ||
698 | + | ||
699 | + | @Callable(z) | |
700 | + | func RemoveToSell (bP) = { | |
701 | + | let ap = getBooleanValue(b, q) | |
702 | + | let bQ = getBooleanValue(b, f) | |
703 | + | let bD = z.payments[0] | |
704 | + | if (ap) | |
705 | + | then if (!(bQ)) | |
706 | + | then if ((Y(fromBase58String(bP)) == z.caller)) | |
707 | + | then [DeleteEntry((bP + "_tosale")), DeleteEntry((bP + "_saled")), DeleteEntry((bP + "_address_SAle")), DeleteEntry((bP + "_assetsale")), DeleteEntry((bP + "_address"))] | |
708 | + | else throw("Only the owner of the NFT can remove it from the list.") | |
709 | + | else throw("NFT is currently under maintenance.") | |
710 | + | else throw("dApp is currently under maintenance.") | |
711 | + | } | |
712 | + | ||
713 | + | ||
714 | + | ||
715 | + | @Callable(z) | |
716 | + | func SellNFT (bV,T) = { | |
717 | + | let ap = getBooleanValue(b, q) | |
718 | + | let bQ = getBooleanValue(b, f) | |
719 | + | let bD = z.payments[0] | |
720 | + | if (ap) | |
721 | + | then if (!(bQ)) | |
722 | + | then if (if ((bD.amount == 0)) | |
723 | + | then true | |
724 | + | else (bD.assetId == e)) | |
725 | + | then throw("Requires NFT as transfer payment for sale.") | |
726 | + | else [IntegerEntry((H(bD.assetId) + "_tosale"), bV), BooleanEntry((H(bD.assetId) + "_saled"), false), StringEntry((H(bD.assetId) + "_address_SAle"), ""), StringEntry((H(bD.assetId) + "_assetsale"), T), StringEntry((H(bD.assetId) + "_address"), toBase58String(z.caller.bytes))] | |
727 | + | else throw("NFT is currently under maintenance.") | |
728 | + | else throw("dApp is currently under maintenance.") | |
729 | + | } | |
730 | + | ||
731 | + | ||
732 | + | ||
733 | + | @Callable(z) | |
734 | + | func CreateCollection (bW) = { | |
735 | + | let ao = toBase58String(z.caller.bytes) | |
736 | + | let bX = { | |
737 | + | let J = getIntegerValue(this, (ao + "_total_collection")) | |
738 | + | if ($isInstanceOf(J, "Int")) | |
739 | + | then { | |
740 | + | let bY = J | |
741 | + | bY | |
742 | + | } | |
743 | + | else 0 | |
744 | + | } | |
745 | + | if (V(bW)) | |
746 | + | then throw("Error: A collection with that name already exists, try another one.") | |
747 | + | else [StringEntry(bW, ao), IntegerEntry((ao + "_total_collection"), (bX + 1))] | |
748 | + | } | |
749 | + | ||
750 | + | ||
751 | + | @Verifier(bZ) | |
752 | + | func ca () = sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey) | |
753 | + |
github/deemru/w8io/03bedc9 45.27 ms ◑![]()