tx · BJAKoPXKEdFMoca254FBVuz9b5X3cF3cPc7HWVqd1tvr

3NCSkSKFXn5HxJhKFRVEjaZexubfTjdsvLk:  -0.02700000 Waves

2023.09.26 10:35 [2772086] smart account 3NCSkSKFXn5HxJhKFRVEjaZexubfTjdsvLk > SELF 0.00000000 Waves

{ "type": 13, "id": "BJAKoPXKEdFMoca254FBVuz9b5X3cF3cPc7HWVqd1tvr", "fee": 2700000, "feeAssetId": null, "timestamp": 1695713694947, "version": 2, "chainId": 84, "sender": "3NCSkSKFXn5HxJhKFRVEjaZexubfTjdsvLk", "senderPublicKey": "EiQRGyXMSPywdZJcLQzgNDBrrvLUyhi8X8EeNn1KTjKu", "proofs": [ "5mkgV5bhJHiZD5vmqkj52mF7G3cinWRY6gwA7i7uQARaEKANnzeyp5kmSidn7dZ8tnHiGGFdM4L9mTkXmawquRgq" ], "script": "base64:BgIzCAISCAoGCAgICAgBEgASABIDCgEEEgASAwoBARIAEgMKAQgSAwoBBBIECgIIARIDCgEIMAALdXNkbkFzc2V0SWQBILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAA1wdXp6bGVBc3NldElkASDxGv4l/vaZOPRpKsTf4RLWR7LGyg66Nwmvd20fjqLlYwALdXNkdEFzc2V0SWQBIB6UBxNSdqEllf3IYaiCXxB/3zpPKbv8mkY/Wv02T5+RAA51c2R0UHB0QXNzZXRJZAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kADnVzZG5Bc3NldElkU3RyAixERzJ4RmtQZER3S1VvQmt6R0FoUXRMcFNHemZYTGlDWVBFemVLSDJBZDI0cAAQcHV6emxlQXNzZXRJZFN0cgIsSEVCOFFhdzl4cldwV3M4dEhzaUFUWUdCV0RCdFAyUzdrY1BBTHJNdTQzQVMADnVzZHRBc3NldElkU3RyAiwzNE45WWNFRVRMV245M3FZUTY0RXNQMXg4OXRTcnVKVTQ0UnJFTVNYWEVQSgARdXNkdFBwdEFzc2V0SWRTdHICLD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ACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBEXRyYW5zZmVyT3duZXJzaGlwAQ9uZXdPd25lckFkZHJlc3MDCQECIT0CCQClCAEIBQFpBmNhbGxlcgkBDHRyeUdldFN0cmluZwECEHN0YXRpY19wb29sT3duZXIJAAIBAid0aGlzIGNhbGwgYXZhaWxhYmxlIG9ubHkgZm9yIHBvb2wgb3duZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgIQc3RhdGljX3Bvb2xPd25lcgUPbmV3T3duZXJBZGRyZXNzBQNuaWwBAnR4AQZ2ZXJpZnkAAwkBCmlzU2h1dGRvd24ABwMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxtYXN0ZXJQdWJLZXnH1+Gf", "height": 2772086, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FjBfhctLNEGBhmDTMiNyRt6anbei8C2NMC1t9CVpETg4 Next: CHkoz4aMTqfr3rnW2MEkCtMVD4ETyGG1rrSKgApwxNkc Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let usdnAssetId = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
66 let puzzleAssetId = base58'HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS'
77
88 let usdtAssetId = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ'
99
1010 let usdtPptAssetId = base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
1111
1212 let usdnAssetIdStr = "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p"
1313
1414 let puzzleAssetIdStr = "HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS"
1515
1616 let usdtAssetIdStr = "34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ"
1717
1818 let usdtPptAssetIdStr = "9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi"
1919
2020 let parentPoolAddress = Address(base58'3PFDgzu1UtswAkCMxqqQjbTeHaX4cMab8Kh')
2121
2222 let masterAddress = Address(base58'3PLjwHcz9NEuaTo63NZR9B9okQiKQxZSbmf')
2323
2424 let masterPubKey = base58'4z8CKSYQBKkzx7PBb5uBP1YPa6YAHRNTApW1sQVHT5eU'
2525
2626 func tryGetInteger (key) = match getInteger(this, key) {
2727 case b: Int =>
2828 b
2929 case _ =>
3030 0
3131 }
3232
3333
3434 func tryGetBinary (key) = match getBinary(this, key) {
3535 case b: ByteVector =>
3636 b
3737 case _ =>
3838 base58''
3939 }
4040
4141
4242 func tryGetString (key) = match getString(this, key) {
4343 case b: String =>
4444 b
4545 case _ =>
4646 ""
4747 }
4848
4949
5050 func getAssetString (assetId) = match assetId {
5151 case b: ByteVector =>
5252 toBase58String(b)
5353 case _ =>
5454 "WAVES"
5555 }
5656
5757
5858 func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES"))
5959 then unit
6060 else fromBase58String(assetIdStr)
6161
6262
6363 func addAssetBytesToList (accum,item) = (accum ++ [getAssetBytes(item)])
6464
6565
6666 func addAssetWeightToList (accum,item) = (accum ++ [tryGetInteger((("static_" + getAssetString(item)) + "_weight"))])
6767
6868
6969 func addAssetDecimalsToList (accum,item) = (accum ++ [tryGetInteger((("static_" + getAssetString(item)) + "_decimals"))])
7070
7171
7272 func addAssetScaleToList (accum,item) = (accum ++ [tryGetInteger((("static_" + getAssetString(item)) + "_scale"))])
7373
7474
7575 func addIntToList (accum,item) = (accum ++ [parseIntValue(item)])
7676
7777
7878 let T = tryGetInteger("static_tokensAmount")
7979
8080 let assetIds = {
8181 let $l = split(tryGetString("static_tokenIds"), ",")
8282 let $s = size($l)
8383 let $acc0 = nil
8484 func $f0_1 ($a,$i) = if (($i >= $s))
8585 then $a
8686 else addAssetBytesToList($a, $l[$i])
8787
8888 func $f0_2 ($a,$i) = if (($i >= $s))
8989 then $a
9090 else throw("List size exceeds 10")
9191
9292 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
9393 }
9494
9595 let AssetsWeights = {
9696 let $l = assetIds
9797 let $s = size($l)
9898 let $acc0 = nil
9999 func $f1_1 ($a,$i) = if (($i >= $s))
100100 then $a
101101 else addAssetWeightToList($a, $l[$i])
102102
103103 func $f1_2 ($a,$i) = if (($i >= $s))
104104 then $a
105105 else throw("List size exceeds 10")
106106
107107 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
108108 }
109109
110110 let Decimals = {
111111 let $l = assetIds
112112 let $s = size($l)
113113 let $acc0 = nil
114114 func $f2_1 ($a,$i) = if (($i >= $s))
115115 then $a
116116 else addAssetDecimalsToList($a, $l[$i])
117117
118118 func $f2_2 ($a,$i) = if (($i >= $s))
119119 then $a
120120 else throw("List size exceeds 10")
121121
122122 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
123123 }
124124
125125 let Scales = {
126126 let $l = assetIds
127127 let $s = size($l)
128128 let $acc0 = nil
129129 func $f3_1 ($a,$i) = if (($i >= $s))
130130 then $a
131131 else addAssetScaleToList($a, $l[$i])
132132
133133 func $f3_2 ($a,$i) = if (($i >= $s))
134134 then $a
135135 else throw("List size exceeds 10")
136136
137137 $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
138138 }
139139
140140 let Fee = tryGetInteger("static_fee")
141141
142142 let AssetsWeightsDecimals = 4
143143
144144 let Scale = 10000
145145
146146 let Scale8 = 100000000
147147
148148 let FeeScale = 10000
149149
150150 let PoolTokenDecimals = 8
151151
152152 let PoolTokenScale = pow(10, 0, PoolTokenDecimals, 0, 0, HALFUP)
153153
154154 let earnedAssets = assetIds
155155
156156 func isShutdown () = match getBoolean(Address(base58'3PEpv9hRFWEEBU22WRnLsw1bH4YGtcU728o'), "is_shutdown") {
157157 case x: Boolean =>
158158 x
159159 case _ =>
160160 false
161161 }
162162
163163
164164 func getCurrentTokenBalance (tokenType) = {
165165 let tokenId = getAssetString(assetIds[tokenType])
166166 tryGetInteger((("global_" + tokenId) + "_balance"))
167167 }
168168
169169
170170 func calculatePIssued (amount,tokenId) = {
171171 let Psupply = tryGetInteger("global_poolToken_amount")
172172 let Balance = tryGetInteger((("global_" + getAssetString(tokenId)) + "_balance"))
173173 fraction(amount, Psupply, Balance, DOWN)
174174 }
175175
176176
177177 func getMinPIssued (payments) = {
178178 func handler (accum,current) = {
179179 let PIssued = calculatePIssued(current.amount, current.assetId)
180180 if ((PIssued == 0))
181181 then throw("one of the tokens amounts is too low")
182182 else if (if ((accum == 0))
183183 then true
184184 else (accum > PIssued))
185185 then PIssued
186186 else accum
187187 }
188188
189189 let minPIssed = {
190190 let $l = payments
191191 let $s = size($l)
192192 let $acc0 = 0
193193 func $f4_1 ($a,$i) = if (($i >= $s))
194194 then $a
195195 else handler($a, $l[$i])
196196
197197 func $f4_2 ($a,$i) = if (($i >= $s))
198198 then $a
199199 else throw("List size exceeds 10")
200200
201201 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
202202 }
203203 minPIssed
204204 }
205205
206206
207207 func calculateUsdnValue (assetId,amount,aBalance,givenUsdnBalance) = {
208208 let usdnInPool = indexOf(assetIds, usdnAssetId)
209209 let puzzleInPool = indexOf(assetIds, puzzleAssetId)
210210 let usdtInPool = indexOf(assetIds, usdtAssetId)
211211 let usdtPptInPool = indexOf(assetIds, usdtPptAssetId)
212212 let wavesInPool = indexOf(assetIds, unit)
213213 let assetWeight = tryGetInteger((("static_" + getAssetString(assetId)) + "_weight"))
214214 let feeAssetStr = tryGetString("static_feeToken")
215215 if ((feeAssetStr == puzzleAssetIdStr))
216216 then {
217217 let puzzleWeight = AssetsWeights[value(indexOf(assetIds, puzzleAssetId))]
218218 let puzzleBalance = tryGetInteger((("global_" + puzzleAssetIdStr) + "_balance"))
219219 let amountInPuzzle = fraction(amount, (puzzleBalance / puzzleWeight), (aBalance / assetWeight))
220220 let puzzlePrice = getIntegerValue(parentPoolAddress, "global_lastPuzzlePrice")
221221 fraction((amountInPuzzle * puzzlePrice), 1, Scale8)
222222 }
223223 else if ((feeAssetStr == usdtAssetIdStr))
224224 then {
225225 let usdtWeight = AssetsWeights[value(usdtInPool)]
226226 let usdtBalance = tryGetInteger((("global_" + usdtAssetIdStr) + "_balance"))
227227 fraction(amount, (usdtBalance / usdtWeight), (aBalance / assetWeight))
228228 }
229229 else if ((feeAssetStr == usdtPptAssetIdStr))
230230 then {
231231 let usdtWeight = AssetsWeights[value(usdtPptInPool)]
232232 let usdtBalance = tryGetInteger((("global_" + usdtPptAssetIdStr) + "_balance"))
233233 fraction(amount, (usdtBalance / usdtWeight), (aBalance / assetWeight))
234234 }
235235 else if ((feeAssetStr == usdnAssetIdStr))
236236 then {
237237 let usdnWeight = AssetsWeights[value(indexOf(assetIds, usdnAssetId))]
238238 let usdnBalance = match givenUsdnBalance {
239239 case x: Int =>
240240 givenUsdnBalance
241241 case _ =>
242242 tryGetInteger((("global_" + getAssetString(usdnAssetId)) + "_balance"))
243243 }
244244 fraction(amount, (value(usdnBalance) / usdnWeight), (aBalance / assetWeight))
245245 }
246246 else {
247247 let wavesWeight = 3000
248248 let wBalance = (tryGetInteger("global_WAVES_balance") / 50)
249249 fraction(amount, (wBalance / wavesWeight), (aBalance / assetWeight))
250250 }
251251 }
252252
253253
254254 func checkTokensValidity (payments) = {
255255 func handler1 (accum,payment) = (accum ++ [payment.assetId])
256256
257257 let ids = {
258258 let $l = payments
259259 let $s = size($l)
260260 let $acc0 = nil
261261 func $f4_1 ($a,$i) = if (($i >= $s))
262262 then $a
263263 else handler1($a, $l[$i])
264264
265265 func $f4_2 ($a,$i) = if (($i >= $s))
266266 then $a
267267 else throw("List size exceeds 10")
268268
269269 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
270270 }
271271 if ((ids == ids))
272272 then {
273273 func handler2 (accum,assetId) = if ((indexOf(ids, assetId) != unit))
274274 then (accum + 1)
275275 else throw(("asset not attached: " + getAssetString(assetId)))
276276
277277 let checks = {
278278 let $l = assetIds
279279 let $s = size($l)
280280 let $acc0 = 0
281281 func $f5_1 ($a,$i) = if (($i >= $s))
282282 then $a
283283 else handler2($a, $l[$i])
284284
285285 func $f5_2 ($a,$i) = if (($i >= $s))
286286 then $a
287287 else throw("List size exceeds 10")
288288
289289 $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
290290 }
291291 if ((checks == checks))
292292 then true
293293 else throw("Strict value is not equal to itself.")
294294 }
295295 else throw("Strict value is not equal to itself.")
296296 }
297297
298298
299299 func handlePoolTokensAdd (PIssued,payments,userAddress,needChange) = {
300300 func getTokenPaymentAmount (tokenId) = {
301301 func handler (accum,payment) = if ((payment.assetId == tokenId))
302302 then payment.amount
303303 else accum
304304
305305 let $l = payments
306306 let $s = size($l)
307307 let $acc0 = 0
308308 func $f4_1 ($a,$i) = if (($i >= $s))
309309 then $a
310310 else handler($a, $l[$i])
311311
312312 func $f4_2 ($a,$i) = if (($i >= $s))
313313 then $a
314314 else throw("List size exceeds 10")
315315
316316 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
317317 }
318318
319319 func handleTokenChange (accum,tokenId) = {
320320 let Bk = tryGetInteger((("global_" + getAssetString(tokenId)) + "_balance"))
321321 let PSupply = tryGetInteger("global_poolToken_amount")
322322 let tokenDecimals = tryGetInteger((("static_" + getAssetString(tokenId)) + "_scale"))
323323 let Dk = fraction((fraction((PSupply + PIssued), tokenDecimals, PSupply, CEILING) - tokenDecimals), Bk, tokenDecimals, CEILING)
324324 let paymentAmount = getTokenPaymentAmount(tokenId)
325325 let toReturn = ((if ((paymentAmount != 0))
326326 then paymentAmount
327327 else 0) - Dk)
328328 let t = if (if (needChange)
329329 then (toReturn > 0)
330330 else false)
331331 then [ScriptTransfer(userAddress, toReturn, tokenId)]
332332 else nil
333333 ((accum ++ t) ++ [IntegerEntry((("global_" + getAssetString(tokenId)) + "_balance"), (Bk + Dk))])
334334 }
335335
336336 let $l = assetIds
337337 let $s = size($l)
338338 let $acc0 = nil
339339 func $f4_1 ($a,$i) = if (($i >= $s))
340340 then $a
341341 else handleTokenChange($a, $l[$i])
342342
343343 func $f4_2 ($a,$i) = if (($i >= $s))
344344 then $a
345345 else throw("List size exceeds 10")
346346
347347 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
348348 }
349349
350350
351351 func handlePoolTokensRedeem (PRedeemed,userAddress) = {
352352 func handleTokenRedeem (accum,tokenId) = {
353353 let Bk = tryGetInteger((("global_" + getAssetString(tokenId)) + "_balance"))
354354 let PSupply = tryGetInteger("global_poolToken_amount")
355355 let tokenDecimals = tryGetInteger((("static_" + getAssetString(tokenId)) + "_scale"))
356356 let amount = toInt(fraction((toBigInt(Scale8) - fraction(toBigInt((PSupply - PRedeemed)), toBigInt(Scale8), toBigInt(PSupply), CEILING)), toBigInt(Bk), toBigInt(Scale8), DOWN))
357357 (accum ++ [IntegerEntry((("global_" + getAssetString(tokenId)) + "_balance"), (Bk - amount)), ScriptTransfer(userAddress, amount, tokenId)])
358358 }
359359
360360 let $l = assetIds
361361 let $s = size($l)
362362 let $acc0 = nil
363363 func $f4_1 ($a,$i) = if (($i >= $s))
364364 then $a
365365 else handleTokenRedeem($a, $l[$i])
366366
367367 func $f4_2 ($a,$i) = if (($i >= $s))
368368 then $a
369369 else throw("List size exceeds 10")
370370
371371 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
372372 }
373373
374374
375375 func calculateOutAmount (AmountIn,assetIn,assetOut,BalanceIn,BalanceOut) = {
376376 let IndexIn = value(indexOf(assetIds, assetIn))
377377 let IndexOut = value(indexOf(assetIds, assetOut))
378378 if ((IndexIn == IndexOut))
379379 then AmountIn
380380 else fraction(BalanceOut, ((Scale8 * Scale8) - toInt(pow(fraction(toBigInt(BalanceIn), toBigInt((Scale8 * Scale8)), toBigInt((BalanceIn + AmountIn)), HALFUP), 16, toBigInt(fraction(AssetsWeights[IndexIn], 10000, AssetsWeights[IndexOut])), 4, 16, CEILING))), (Scale8 * Scale8), DOWN)
381381 }
382382
383383
384384 func getTokenBalance (assetId) = match assetId {
385385 case t: ByteVector =>
386386 assetBalance(this, t)
387387 case _ =>
388388 wavesBalance(this).available
389389 }
390390
391391
392392 func calculateCurrentAssetInterest (assetId,assetIdStr,aBalance,tokenEarningsLastCheck) = {
393393 let totalStaked = tryGetInteger("global_indexStaked")
394394 let tokenBalanceLastCheck = tokenEarningsLastCheck
395395 let currentBalanceDelta = (getTokenBalance(assetId) - aBalance)
396396 let currentTokenEarnings = if ((currentBalanceDelta > tokenBalanceLastCheck))
397397 then currentBalanceDelta
398398 else tokenBalanceLastCheck
399399 let newEarnings = (currentTokenEarnings - tokenBalanceLastCheck)
400400 let newInterest = if ((totalStaked == 0))
401401 then 0
402402 else fraction(newEarnings, Scale8, totalStaked)
403403 let lastCheckInterest = tryGetInteger((("global_lastCheck_" + assetIdStr) + "_interest"))
404404 (lastCheckInterest + newInterest)
405405 }
406406
407407
408408 func claimResult (address) = {
409409 let addressStr = toString(address)
410410 let puzzleAmount = tryGetInteger((addressStr + "_indexStaked"))
411411 func handler (accum,assetId) = {
412412 let assetIdStr = getAssetString(assetId)
413413 let aBalance = tryGetInteger((("global_" + getAssetString(assetId)) + "_balance"))
414414 let tokenEarningsLastCheck = tryGetInteger((("global_lastCheck_" + assetIdStr) + "_earnings"))
415415 let currentTokenInterest = calculateCurrentAssetInterest(assetId, assetIdStr, aBalance, tokenEarningsLastCheck)
416416 let currentTokenEarnings = max([tokenEarningsLastCheck, (getTokenBalance(assetId) - aBalance)])
417417 let rewardAmount = fraction(puzzleAmount, (currentTokenInterest - tryGetInteger((((addressStr + "_lastCheck_") + assetIdStr) + "_interest"))), Scale8)
418418 let transfer = if ((rewardAmount == 0))
419419 then nil
420420 else [ScriptTransfer(address, rewardAmount, assetId)]
421421 $Tuple2(((accum._1 ++ transfer) ++ [IntegerEntry((("global_lastCheck_" + assetIdStr) + "_earnings"), (currentTokenEarnings - rewardAmount)), IntegerEntry((("global_lastCheck_" + assetIdStr) + "_interest"), currentTokenInterest), IntegerEntry((((addressStr + "_lastCheck_") + assetIdStr) + "_interest"), currentTokenInterest)]), (accum._2 + calculateUsdnValue(assetId, rewardAmount, aBalance, unit)))
422422 }
423423
424424 let accum = {
425425 let $l = earnedAssets
426426 let $s = size($l)
427427 let $acc0 = $Tuple2(nil, 0)
428428 func $f4_1 ($a,$i) = if (($i >= $s))
429429 then $a
430430 else handler($a, $l[$i])
431431
432432 func $f4_2 ($a,$i) = if (($i >= $s))
433433 then $a
434434 else throw("List size exceeds 10")
435435
436436 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
437437 }
438438 $Tuple2((accum._1 ++ [IntegerEntry((addressStr + "_claimedRewardValue"), (tryGetInteger((addressStr + "_claimedRewardValue")) + accum._2)), IntegerEntry((addressStr + "_lastClaim"), lastBlock.timestamp)]), accum._2)
439439 }
440440
441441
442442 func indexStakeResult (addressStr,amount) = {
443443 let li = claimResult(addressFromStringValue(addressStr))._1
444444 (li ++ [IntegerEntry((addressStr + "_indexStaked"), (tryGetInteger((addressStr + "_indexStaked")) + amount)), IntegerEntry("global_indexStaked", (tryGetInteger("global_indexStaked") + amount))])
445445 }
446446
447447
448448 func sum (accum,n) = (accum + parseIntValue(n))
449449
450450
451451 @Callable(i)
452452 func preInit (assetIdsStr,assetWeightsStr,baseTokenIdStr,poolDomain,poolOwner,fee) = {
453453 let poolOwnerAddress = Address(fromBase58String(poolOwner))
454454 if (isShutdown())
455455 then throw("contract is on stop")
456456 else if ((this != i.caller))
457457 then throw("admin only")
458458 else if ((size(poolDomain) > 13))
459459 then throw("too large pool domain")
460460 else if (if ((fee > 500))
461461 then true
462462 else (50 > fee))
463463 then throw("fee value must be between 50 and 500 (0.5-5%)")
464464 else if (if (if (if (if ((indexOf(assetIdsStr, puzzleAssetIdStr) == unit))
465465 then (indexOf(assetIdsStr, usdnAssetIdStr) == unit)
466466 else false)
467467 then (indexOf(assetIdsStr, usdtAssetIdStr) == unit)
468468 else false)
469469 then (indexOf(assetIdsStr, "WAVES") == unit)
470470 else false)
471471 then (indexOf(assetIdsStr, usdtPptAssetIdStr) == unit)
472472 else false)
473473 then throw("pool must have USDT-WXG, USDT-PPT, USDN, WAVES or PUZZLE in the composition")
474474 else {
475475 let assetIdsStrLi = split(assetIdsStr, ",")
476476 let assetIdsLi = {
477477 let $l = assetIdsStrLi
478478 let $s = size($l)
479479 let $acc0 = nil
480480 func $f4_1 ($a,$i) = if (($i >= $s))
481481 then $a
482482 else addAssetBytesToList($a, $l[$i])
483483
484484 func $f4_2 ($a,$i) = if (($i >= $s))
485485 then $a
486486 else throw("List size exceeds 10")
487487
488488 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
489489 }
490490 let assetWeightsStrLi = split(assetWeightsStr, ",")
491491 let assetWeightsSum = {
492492 let $l = assetWeightsStrLi
493493 let $s = size($l)
494494 let $acc0 = 0
495495 func $f5_1 ($a,$i) = if (($i >= $s))
496496 then $a
497497 else sum($a, $l[$i])
498498
499499 func $f5_2 ($a,$i) = if (($i >= $s))
500500 then $a
501501 else throw("List size exceeds 10")
502502
503503 $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
504504 }
505505 let feeAssetStr = if ((indexOf(assetIdsStr, usdnAssetIdStr) != unit))
506506 then usdnAssetIdStr
507507 else if ((indexOf(assetIdsStr, "WAVES") != unit))
508508 then "WAVES"
509509 else if ((indexOf(assetIdsStr, usdtAssetIdStr) != unit))
510510 then usdtAssetIdStr
511511 else if ((indexOf(assetIdsStr, puzzleAssetIdStr) != unit))
512512 then puzzleAssetIdStr
513513 else usdtPptAssetIdStr
514514 func addTokenDataEntries (accum,assetNum) = if ((assetNum >= size(assetIdsLi)))
515515 then accum
516516 else {
517517 let assetDecimals = match assetIdsLi[assetNum] {
518518 case x: ByteVector =>
519519 value(assetInfo(x)).decimals
520520 case _ =>
521521 8
522522 }
523523 (accum ++ [IntegerEntry((("static_" + assetIdsStrLi[assetNum]) + "_scale"), pow(10, 0, assetDecimals, 0, 0, DOWN)), IntegerEntry((("static_" + assetIdsStrLi[assetNum]) + "_decimals"), assetDecimals), IntegerEntry((("static_" + assetIdsStrLi[assetNum]) + "_weight"), value(parseInt(assetWeightsStrLi[assetNum])))])
524524 }
525525
526526 if ((assetWeightsSum != 10000))
527527 then throw("sum of token weights must be equal to 10000")
528528 else ({
529529 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
530530 let $s = size($l)
531531 let $acc0 = nil
532532 func $f6_1 ($a,$i) = if (($i >= $s))
533533 then $a
534534 else addTokenDataEntries($a, $l[$i])
535535
536536 func $f6_2 ($a,$i) = if (($i >= $s))
537537 then $a
538538 else throw("List size exceeds 10")
539539
540540 $f6_2($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
541541 } ++ [StringEntry("static_tokenIds", assetIdsStr), StringEntry("static_feeToken", feeAssetStr), StringEntry("static_tokenWeights", assetWeightsStr), IntegerEntry("static_tokensAmount", size(assetIdsLi)), StringEntry("static_poolDomain", poolDomain), StringEntry("static_baseTokenId", baseTokenIdStr), StringEntry("static_poolOwner", poolOwner), IntegerEntry("static_fee", fee)])
542542 }
543543 }
544544
545545
546546
547547 @Callable(i)
548548 func deInit () = if (isShutdown())
549549 then throw("contract is on stop")
550550 else if ((i.caller != this))
551551 then throw("admin only")
552552 else [IntegerEntry("global_wasInited", 0)]
553553
554554
555555
556556 @Callable(i)
557557 func init () = {
558558 func prepareList () = {
559559 func handler (accum,n) = (accum ++ [IntegerEntry((("global_" + getAssetString(n.assetId)) + "_balance"), n.amount)])
560560
561561 let $l = i.payments
562562 let $s = size($l)
563563 let $acc0 = nil
564564 func $f4_1 ($a,$i) = if (($i >= $s))
565565 then $a
566566 else handler($a, $l[$i])
567567
568568 func $f4_2 ($a,$i) = if (($i >= $s))
569569 then $a
570570 else throw("List size exceeds 10")
571571
572572 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
573573 }
574574
575575 func calculatePoolTokensAmount (payments) = {
576576 func handler (accum,pmt) = {
577577 let assetId = pmt.assetId
578578 func handler2 (accum,n) = if ((n == assetId))
579579 then value(indexOf(assetIds, n))
580580 else accum
581581
582582 let Token = {
583583 let $l = assetIds
584584 let $s = size($l)
585585 let $acc0 = 1
586586 func $f4_1 ($a,$i) = if (($i >= $s))
587587 then $a
588588 else handler2($a, $l[$i])
589589
590590 func $f4_2 ($a,$i) = if (($i >= $s))
591591 then $a
592592 else throw("List size exceeds 10")
593593
594594 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
595595 }
596596 fraction(accum, pow(pmt.amount, Decimals[Token], AssetsWeights[Token], AssetsWeightsDecimals, 8, FLOOR), Scale8)
597597 }
598598
599599 let $l = payments
600600 let $s = size($l)
601601 let $acc0 = PoolTokenScale
602602 func $f4_1 ($a,$i) = if (($i >= $s))
603603 then $a
604604 else handler($a, $l[$i])
605605
606606 func $f4_2 ($a,$i) = if (($i >= $s))
607607 then $a
608608 else throw("List size exceeds 10")
609609
610610 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
611611 }
612612
613613 if (isShutdown())
614614 then throw("contract is on stop")
615615 else if ((tryGetInteger("global_wasInited") > 0))
616616 then throw("pool already inited")
617617 else {
618618 let initialPoolTokens = calculatePoolTokensAmount(i.payments)
619619 if ((initialPoolTokens == 0))
620620 then throw("you need a bigger tokens amount to launch the pool")
621621 else {
622622 let poolTokenIssue = Issue(("PZ " + tryGetString("static_poolDomain")), "Puzzle Swap: pool index token", initialPoolTokens, PoolTokenDecimals, true, unit, 0)
623623 let poolTokenId = calculateAssetId(poolTokenIssue)
624624 (prepareList() ++ [poolTokenIssue, IntegerEntry("global_poolToken_amount", initialPoolTokens), IntegerEntry("global_wasInited", 1), BinaryEntry("global_poolToken_id", poolTokenId), StringEntry("static_poolToken_idStr", getAssetString(poolTokenId)), IntegerEntry((toString(i.caller) + "_indexStaked"), initialPoolTokens), IntegerEntry("global_indexStaked", initialPoolTokens)])
625625 }
626626 }
627627 }
628628
629629
630630
631631 @Callable(i)
632632 func generateIndex (needChange) = if ((size(i.payments) != T))
633633 then throw(("you need to attach all pool tokens. amount of pool tokens: " + toString(T)))
634634 else if (!(checkTokensValidity(i.payments)))
635635 then throw("wrong assets attached")
636636 else {
637637 let PIssued = getMinPIssued(i.payments)
638638 let reissue = Reissue(getBinaryValue("global_poolToken_id"), PIssued, true)
639639 let result = handlePoolTokensAdd(PIssued, i.payments, i.originCaller, needChange)
640640 $Tuple2((result ++ [reissue, ScriptTransfer(i.caller, PIssued, tryGetBinary("global_poolToken_id")), IntegerEntry("global_poolToken_amount", (tryGetInteger("global_poolToken_amount") + PIssued))]), PIssued)
641641 }
642642
643643
644644
645645 @Callable(i)
646646 func stakeIndex () = {
647647 let addressStr = toString(i.originCaller)
648648 let pmt = i.payments[0]
649649 if ((value(pmt.assetId) != tryGetBinary("global_poolToken_id")))
650650 then throw("wrong asset attached")
651651 else indexStakeResult(addressStr, pmt.amount)
652652 }
653653
654654
655655
656656 @Callable(i)
657657 func unstakeIndex (puzzleAmount) = {
658658 let addressStr = toString(i.originCaller)
659659 let puzzleAvailable = tryGetInteger((addressStr + "_indexStaked"))
660660 if (isShutdown())
661661 then throw("contract is on stop")
662662 else if ((puzzleAmount > puzzleAvailable))
663663 then throw("you don't have index tokens available")
664664 else if (isShutdown())
665665 then throw("contract is on stop")
666666 else (claimResult(i.originCaller)._1 ++ [IntegerEntry((addressStr + "_indexStaked"), (puzzleAvailable - puzzleAmount)), IntegerEntry("global_indexStaked", (tryGetInteger("global_indexStaked") - puzzleAmount)), ScriptTransfer(i.caller, puzzleAmount, getBinaryValue("global_poolToken_id"))])
667667 }
668668
669669
670670
671671 @Callable(i)
672672 func claimIndexRewards () = if (isShutdown())
673673 then throw("contract is on stop")
674674 else claimResult(i.caller)
675675
676676
677677
678678 @Callable(i)
679679 func evaluateClaim (user) = $Tuple2(nil, claimResult(addressFromStringValue(user))._2)
680680
681681
682682
683683 @Callable(i)
684684 func redeemIndex (sendToOrigin) = {
685685 let pmt = i.payments[0]
686686 if ((pmt.assetId != tryGetBinary("global_poolToken_id")))
687687 then throw("please attach pool share token")
688688 else if (isShutdown())
689689 then throw("contract is on stop")
690690 else {
691691 let PRedeemed = pmt.amount
692692 let result = handlePoolTokensRedeem(PRedeemed, if (sendToOrigin)
693693 then i.originCaller
694694 else i.caller)
695695 (result ++ [Burn(tryGetBinary("global_poolToken_id"), PRedeemed), IntegerEntry("global_poolToken_amount", (tryGetInteger("global_poolToken_amount") - PRedeemed))])
696696 }
697697 }
698698
699699
700700
701701 @Callable(i)
702702 func swap (assetOut,minimum) = {
703703 let pmt = if ((size(i.payments) == 1))
704704 then value(i.payments[0])
705705 else throw("please attach exactly one payment")
706706 let AmountIn = value(i.payments[0].amount)
707707 let AssetIn = pmt.assetId
708708 let AssetOut = getAssetBytes(assetOut)
709709 let feeAssetOutStr = tryGetString("static_feeToken")
710710 let feeAssetOut = if ((feeAssetOutStr == ""))
711711 then usdnAssetId
712712 else getAssetBytes(feeAssetOutStr)
713713 let AssetInBalance = tryGetInteger((("global_" + getAssetString(AssetIn)) + "_balance"))
714714 let AssetOutBalance = tryGetInteger((("global_" + assetOut) + "_balance"))
715715 let feeAmountIn = fraction(AmountIn, Fee, FeeScale)
716716 let cleanAmountIn = (AmountIn - feeAmountIn)
717717 let AmountOut = calculateOutAmount(cleanAmountIn, AssetIn, AssetOut, AssetInBalance, AssetOutBalance)
718718 let AssetOutBalance2 = (AssetOutBalance - AmountOut)
719719 let AssetInBalance2 = (AssetInBalance + cleanAmountIn)
720720 let feeAssetOutBalance = if ((feeAssetOut == AssetIn))
721721 then AssetInBalance2
722722 else if ((feeAssetOut == AssetOut))
723723 then AssetOutBalance2
724724 else tryGetInteger((("global_" + getAssetString(feeAssetOut)) + "_balance"))
725725 let feeAmountOut = calculateOutAmount(feeAmountIn, AssetIn, feeAssetOut, AssetInBalance, feeAssetOutBalance)
726726 if ((minimum > AmountOut))
727727 then throw("amount to recieve is lower than given one")
728728 else if ((AssetOut == AssetIn))
729729 then throw("this swap is not allowed")
730730 else if ((0 > (AssetOutBalance - AmountOut)))
731731 then throw("contract is out of reserves")
732732 else if (isShutdown())
733733 then throw("contract is on stop")
734734 else {
735735 let creatorFee = fraction(feeAmountOut, 1, 10)
736736 let protocolFee = fraction(feeAmountOut, 4, 10)
737737 let stakingTopUp = if (if ((feeAssetOut == usdnAssetId))
738738 then true
739739 else (feeAssetOut == puzzleAssetId))
740740 then reentrantInvoke(Address(base58'3PFTbywqxtFfukX3HyT881g4iW5K4QL3FAS'), "topUpReward", nil, [AttachedPayment(feeAssetOut, protocolFee)])
741741 else unit
742742 if ((stakingTopUp == stakingTopUp))
743743 then {
744744 let newBalanceIn = AssetInBalance2
745745 let newBalanceOut = (AssetOutBalance2 - (if ((AssetOut == feeAssetOut))
746746 then feeAmountOut
747747 else 0))
748748 let newBalanceFeeAsset = if (if ((feeAssetOut != AssetIn))
749749 then (feeAssetOut != AssetOut)
750750 else false)
751751 then (feeAssetOutBalance - feeAmountOut)
752752 else unit
753753 let assetInChange = IntegerEntry((("global_" + getAssetString(AssetIn)) + "_balance"), newBalanceIn)
754754 let assetOutChange = IntegerEntry((("global_" + assetOut) + "_balance"), newBalanceOut)
755755 let feeAssetOutChange = if ((newBalanceFeeAsset != unit))
756756 then IntegerEntry((("global_" + getAssetString(feeAssetOut)) + "_balance"), value(newBalanceFeeAsset))
757757 else StringEntry("hello", "world")
758758 let volumeUpdate = calculateUsdnValue(AssetIn, AmountIn, AssetInBalance, feeAssetOutBalance)
759759 $Tuple2(([assetOutChange, assetInChange, feeAssetOutChange, ScriptTransfer(i.caller, AmountOut, AssetOut), ScriptTransfer(addressFromStringValue(tryGetString("static_poolOwner")), creatorFee, feeAssetOut), IntegerEntry("global_earnedByOwner", (tryGetInteger("global_earnedByOwner") + creatorFee)), IntegerEntry("global_volume", (tryGetInteger("global_volume") + volumeUpdate))] ++ (if ((stakingTopUp == unit))
760760 then [ScriptTransfer(Address(base58'3PFWAVKmXjfHXyzJb12jCbhP4Uhi9t4uWiD'), protocolFee, feeAssetOut)]
761761 else nil)), AmountOut)
762762 }
763763 else throw("Strict value is not equal to itself.")
764764 }
765765 }
766766
767767
768768
769769 @Callable(i)
770770 func transferOwnership (newOwnerAddress) = if ((toString(i.caller) != tryGetString("static_poolOwner")))
771771 then throw("this call available only for pool owner")
772772 else [StringEntry("static_poolOwner", newOwnerAddress)]
773773
774774
775775 @Verifier(tx)
776776 func verify () = if (isShutdown())
777777 then false
778778 else if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
779779 then true
780780 else sigVerify(tx.bodyBytes, tx.proofs[0], masterPubKey)
781781

github/deemru/w8io/169f3d6 
68.45 ms