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