tx · 6zMrSnh1QwfVD8rRMvm6MpzapTu8SPYuDjovuK4BKxq8

3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP:  -0.03000000 Waves

2023.08.18 10:24 [2715739] smart account 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP > SELF 0.00000000 Waves

{ "type": 13, "id": "6zMrSnh1QwfVD8rRMvm6MpzapTu8SPYuDjovuK4BKxq8", "fee": 3000000, "feeAssetId": null, "timestamp": 1692343513613, "version": 1, "sender": "3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP", "senderPublicKey": "AoKo4segKHU4DeJnxXQYJj2u7J6XJeux6r8KLW52cd2Q", "proofs": [ "3jraVKHLpZSJv6dJ9Aux2s9Mjk5bJQyXoKHPfY5AwSd5HEJ9bQkk75Kvtoqeh3FEfoVfraEYtsQ3LtBBB2pNPGTp" ], "script": "base64:BwJFCAISAwoBAhIHCgUCAQEBARIGCgQBAQEBEgMKAQISAwoBAhIECgICAhIECgICCBIECgICGBIECgICCBIECgICGBIDCgECPQADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAFV0FWRVMCBVdBVkVTAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUNQ09OVFJBQ1RfTkFNRQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9hc3NldElkVG9TdHJpbmcBB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQBYgUHJG1hdGNoMAkA2AQBBQFiAwkAAQIFByRtYXRjaDACBFVuaXQFBVdBVkVTCQACAQILTWF0Y2ggZXJyb3IBD3N0cmluZ1RvQXNzZXRJZAEBcwMJAAACBQFzBQVXQVZFUwUEdW5pdAkA2QQBBQFzAQNhYnMBAW4DCQBmAgAABQFuCQEBLQEFAW4FAW4BEWtle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ub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAECXB1YmxpY0tleQQHJG1hdGNoMAkBGWdldE1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEA3B1YgUHJG1hdGNoMAUDcHViCAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQlwdWJsaWNLZXmFI3vT", "chainId": 84, "height": 2715739, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C6nJEhHC3gt1HYmX8YKGzcowMBD5bxC3E9FJhmPW4W6T Next: 2ERVgNQCKUuV6ebrqq37auJs3tAFugjYQbWrY6qoxNmo Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func test () = {
5- let list = [$Tuple2("a", 0), $Tuple2("b", 1), $Tuple2("c", 2)]
6- func bar (acc,next) = {
7- let $t0191208 = next
8- let a = $t0191208._1
9- let b = $t0191208._2
10- let c = invoke(this, "foo", [a, b], nil)
11- if ((c == c))
12- then 0
13- else throw("Strict value is not equal to itself.")
4+let SEP = "__"
5+
6+let CONTRACT_NAME = "calculator.ride"
7+
8+let SCALE8 = 100000000
9+
10+let PENDING = "PENDING"
11+
12+let WAVES = "WAVES"
13+
14+func wrapErr (s) = ((CONTRACT_NAME + ": ") + s)
15+
16+
17+func throwErr (s) = throw(wrapErr(s))
18+
19+
20+func assetIdToString (assetId) = match assetId {
21+ case b: ByteVector =>
22+ toBase58String(b)
23+ case _: Unit =>
24+ WAVES
25+ case _ =>
26+ throw("Match error")
27+}
28+
29+
30+func stringToAssetId (s) = if ((s == WAVES))
31+ then unit
32+ else fromBase58String(s)
33+
34+
35+func abs (n) = if ((0 > n))
36+ then -(n)
37+ else n
38+
39+
40+func keyFactoryAddress () = makeString(["%s", "factory"], SEP)
41+
42+
43+func keyManagerPublicKey () = makeString(["%s", "managerPublicKey"], SEP)
44+
45+
46+func keyLpAssetId () = makeString(["%s", "lpAssetId"], SEP)
47+
48+
49+func keyProxyTreasuryAddress () = makeString(["%s", "proxyTreasury"], SEP)
50+
51+
52+func keyMainTreasuryAddress () = makeString(["%s", "mainTreasury"], SEP)
53+
54+
55+func keyBusinessTreasuryAddress () = makeString(["%s", "businessTreasury"], SEP)
56+
57+
58+func keyBusinessTreasuryPart () = makeString(["%s", "businessTreasuryPart"], SEP)
59+
60+
61+func keyPowerContractAddress () = makeString(["%s", "powerContract"], SEP)
62+
63+
64+func keyPowerShareRatio () = makeString(["%s", "powerShareRatio"], SEP)
65+
66+
67+func keyPowerAssetId () = makeString(["%s", "powerAssetId"], SEP)
68+
69+
70+func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP)
71+
72+
73+func keyDonated (assetId) = makeString(["%s%s", "donated", assetIdToString(assetId)], SEP)
74+
75+
76+func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP)
77+
78+
79+func keyClaimed (userAddress) = makeString(["%s%s", "claimed", toString(userAddress)], SEP)
80+
81+
82+func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
83+
84+
85+func keyPriceForPeriod (period) = makeString(["%s%d", "price", toString(period)], SEP)
86+
87+
88+func keyStartHeight (period) = makeString(["%s%d", "startHeight", toString(period)], SEP)
89+
90+
91+func keyPowerManagerBonus (period) = makeString(["%s%d", "powerManagerBonus", toString(period)], SEP)
92+
93+
94+func keyClaimWavesAmount (period) = makeString(["%s%d", "claimWavesAmount", toString(period)], SEP)
95+
96+
97+func keyPeriodLength () = "%s__periodLength"
98+
99+
100+func keyInvestPeriodLength () = "%s__investPeriodLength"
101+
102+
103+func keyBlockProcessingReward () = "%s__blockProcessingReward"
104+
105+
106+func keyNextBlockToProcess () = "%s__nextBlockToProcess"
107+
108+
109+func keyBlockProcessed (height) = makeString(["%s%d", "blockProcessed", toString(height)], SEP)
110+
111+
112+func keyWithdrawal () = "%s__withdrawal"
113+
114+
115+func keyWithdrawalRequest (userAddress,txId) = makeString(["%s%s%s", "withdrawal", toString(userAddress), toBase58String(txId)], SEP)
116+
117+
118+func valueWithdrawalRequest (status,lpAssetAmount,targetPeriod,claimTxId) = {
119+ let claimTxIdStr = match claimTxId {
120+ case b: ByteVector =>
121+ toBase58String(b)
122+ case _: Unit =>
123+ "SOON"
124+ case _ =>
125+ throw("Match error")
126+ }
127+ makeString(["%s%d%d%s", status, toString(lpAssetAmount), toString(targetPeriod), claimTxIdStr], SEP)
128+ }
129+
130+
131+func keyWithdrawalHistory (userAddress,txId) = makeString(["%s%s%s", "withdrawalHistory", toString(userAddress), toBase58String(txId)], SEP)
132+
133+
134+func keyPeriodWithdrawalAssetIds (period) = makeString(["%s%d", "periodReward", toString(period)], SEP)
135+
136+
137+func keyPeriodWithdrawalAmounts (period) = makeString(["%s%d", "periodRewardAmount", toString(period)], SEP)
138+
139+
140+func parseWithdrawalRequestValueOrFail (s) = {
141+ let parts = split(s, SEP)
142+ if ((size(parts) == 5))
143+ then {
144+ let status = parts[1]
145+ let lpAssetAmount = valueOrErrorMessage(parseInt(parts[2]), wrapErr("invalid lpAssetAmount"))
146+ let targetPeriod = valueOrErrorMessage(parseInt(parts[3]), wrapErr("invalid targetPeriod"))
147+ let claimTxId = parts[4]
148+ $Tuple4(status, lpAssetAmount, targetPeriod, claimTxId)
149+ }
150+ else throwErr("invalid withdrawal request value")
151+ }
152+
153+
154+let factoryAddressOption = match getString(this, keyFactoryAddress()) {
155+ case s: String =>
156+ addressFromString(s)
157+ case _: Unit =>
158+ unit
159+ case _ =>
160+ throw("Match error")
161+}
162+
163+let factoryAddressOrFail = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address"))
164+
165+let lpAssetIdOption = match factoryAddressOption {
166+ case a: Address =>
167+ match getString(a, keyLpAssetId()) {
168+ case s: String =>
169+ fromBase58String(s)
170+ case _: Unit =>
171+ unit
172+ case _ =>
173+ throw("Match error")
14174 }
175+ case _: Unit =>
176+ unit
177+ case _ =>
178+ throw("Match error")
179+}
15180
16- let $l = list
17- let $s = size($l)
18- let $acc0 = 0
19- func $f0_1 ($a,$i) = if (($i >= $s))
20- then $a
21- else bar($a, $l[$i])
181+let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId"))
22182
23- func $f0_2 ($a,$i) = if (($i >= $s))
24- then $a
25- else throw("List size exceeds 10")
183+let proxyTreasuryAddressOption = match factoryAddressOption {
184+ case a: Address =>
185+ match getString(a, keyProxyTreasuryAddress()) {
186+ case s: String =>
187+ addressFromString(s)
188+ case _: Unit =>
189+ unit
190+ case _ =>
191+ throw("Match error")
192+ }
193+ case _: Unit =>
194+ unit
195+ case _ =>
196+ throw("Match error")
197+}
26198
27- $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)
199+let proxyTreasuryAddressOrFail = valueOrErrorMessage(proxyTreasuryAddressOption, wrapErr("invalid proxy treasury address"))
200+
201+let mainTreasuryAddressOption = match factoryAddressOption {
202+ case a: Address =>
203+ match getString(a, keyMainTreasuryAddress()) {
204+ case s: String =>
205+ addressFromString(s)
206+ case _: Unit =>
207+ unit
208+ case _ =>
209+ throw("Match error")
210+ }
211+ case _: Unit =>
212+ unit
213+ case _ =>
214+ throw("Match error")
215+}
216+
217+let businessTreasuryAddressOption = match factoryAddressOption {
218+ case a: Address =>
219+ match getString(a, keyBusinessTreasuryAddress()) {
220+ case s: String =>
221+ addressFromString(s)
222+ case _: Unit =>
223+ unit
224+ case _ =>
225+ throw("Match error")
226+ }
227+ case _: Unit =>
228+ unit
229+ case _ =>
230+ throw("Match error")
231+}
232+
233+let mainTreasuryAddressOrFail = valueOrErrorMessage(mainTreasuryAddressOption, wrapErr("invalid main treasury address"))
234+
235+let businessTreasuryAddressOrFail = valueOrErrorMessage(businessTreasuryAddressOption, wrapErr("invalid business treasury address"))
236+
237+let powerContractAddressOption = match factoryAddressOption {
238+ case a: Address =>
239+ match getString(a, keyPowerContractAddress()) {
240+ case s: String =>
241+ addressFromString(s)
242+ case _: Unit =>
243+ unit
244+ case _ =>
245+ throw("Match error")
246+ }
247+ case _: Unit =>
248+ unit
249+ case _ =>
250+ throw("Match error")
251+}
252+
253+let powerContractAddressOrFail = valueOrErrorMessage(powerContractAddressOption, wrapErr("invalid power contract address"))
254+
255+let powerAssetIdStringOrFail = valueOrErrorMessage(getString(factoryAddressOrFail, keyPowerAssetId()), wrapErr("power asset id not found"))
256+
257+func getManagerPublicKeyOrUnit () = match factoryAddressOption {
258+ case fa: Address =>
259+ match getString(fa, keyManagerPublicKey()) {
260+ case pub: String =>
261+ fromBase58String(pub)
262+ case _ =>
263+ unit
264+ }
265+ case _ =>
266+ unit
267+}
268+
269+
270+func onlyAddress (i,address) = if ((i.caller == address))
271+ then true
272+ else throwErr("permission denied")
273+
274+
275+func onlyFactory (i) = onlyAddress(i, factoryAddressOrFail)
276+
277+
278+func rewardForOption (rewards,target) = {
279+ let s = size(rewards)
280+ let $t066316656 = rewards[0]
281+ let a0 = $t066316656._1
282+ let r0 = $t066316656._2
283+ let $t066596684 = rewards[1]
284+ let a1 = $t066596684._1
285+ let r1 = $t066596684._2
286+ let $t066876712 = rewards[2]
287+ let a2 = $t066876712._1
288+ let r2 = $t066876712._2
289+ if (if ((s > 0))
290+ then (a0 == target)
291+ else false)
292+ then r0
293+ else if (if ((s > 1))
294+ then (a1 == target)
295+ else false)
296+ then r1
297+ else if (if ((s > 2))
298+ then (a2 == target)
299+ else false)
300+ then r2
301+ else unit
302+ }
303+
304+
305+func calculatePrice (lpPartInWaves) = {
306+ let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
307+ let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity
308+ let newPrice = fraction(lpPartInWaves, SCALE8, (lpAssetQuantity - lpAssetAmountToBurn))
309+ let checkIfPriceNotZero = if ((newPrice != 0))
310+ then true
311+ else throwErr("LP price cannot be 0")
312+ if ((checkIfPriceNotZero == checkIfPriceNotZero))
313+ then {
314+ let lpAssetFinalQuantity = (lpAssetQuantity - lpAssetAmountToBurn)
315+ $Tuple3(newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity)
316+ }
317+ else throw("Strict value is not equal to itself.")
318+ }
319+
320+
321+func claimCollateralINTERNAL (userAddressBytes,txId) = {
322+ let userAddress = Address(userAddressBytes)
323+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
324+ let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
325+ let $t078797992 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
326+ let status = $t078797992._1
327+ let lpAssetAmount = $t078797992._2
328+ let targetPeriod = $t078797992._3
329+ let claimTxId = $t078797992._4
330+ if ((targetPeriod > currentPeriodOrFail))
331+ then throwErr("invalid withdrawal request period")
332+ else {
333+ let priceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(targetPeriod)), wrapErr("invalid price"))
334+ let wavesAmount = if ((priceOrFail > 0))
335+ then fraction(lpAssetAmount, priceOrFail, SCALE8)
336+ else 0
337+ let assetsString = getStringValue(factoryAddressOrFail, keyPeriodWithdrawalAssetIds(currentPeriodOrFail))
338+ let amountsString = getStringValue(factoryAddressOrFail, keyPeriodWithdrawalAmounts(currentPeriodOrFail))
339+ $Tuple6(userAddress, lpAssetAmount, targetPeriod, wavesAmount, assetsString, amountsString)
340+ }
341+ }
342+
343+
344+func claimCollateralREADONLYStringResponse (userAddressBytes,txId) = {
345+ let $t087798945 = claimCollateralINTERNAL(userAddressBytes, txId)
346+ let userAddress = $t087798945._1
347+ let lpAssetAmount = $t087798945._2
348+ let targetPeriod = $t087798945._3
349+ let wavesAmount = $t087798945._4
350+ let assetsString = $t087798945._5
351+ let amountsString = $t087798945._6
352+ let assets = makeString(removeByIndex(split_51C(assetsString, SEP), 0), ":")
353+ let amounts = makeString(removeByIndex(split_51C(amountsString, SEP), 0), ":")
354+ makeString(["%d%s%s", toString(wavesAmount), assets, amounts], SEP)
28355 }
29356
30357
31358 @Callable(i)
32-func foo (a,b) = [IntegerEntry(a, b)]
359+func claimLP (userAddressBytes) = {
360+ let checkCaller = onlyFactory(i)
361+ if ((checkCaller == checkCaller))
362+ then {
363+ let userAddress = Address(userAddressBytes)
364+ let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(userAddress)), 0)
365+ let claimed = valueOrElse(getInteger(factoryAddressOrFail, keyClaimed(userAddress)), 0)
366+ let factoryActions = if ((available > 0))
367+ then [invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, available, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(userAddress), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimed(userAddress), (claimed + available)], nil)]
368+ else throwErr("nothing to claim")
369+ $Tuple2(nil, factoryActions)
370+ }
371+ else throw("Strict value is not equal to itself.")
372+ }
33373
34374
35375
36376 @Callable(i)
37-func a () = {
38- let a = test()
39- if ((a == a))
40- then nil
377+func finalize (userAddressBytes,donationPartInWaves,lpPartInWaves,claimPartInWaves,powerStakePartInWaves) = {
378+ let checkCaller = onlyFactory(i)
379+ if ((checkCaller == checkCaller))
380+ then {
381+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
382+ let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
383+ let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
384+ let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
385+ let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
386+ let periodEndHeight = ((currentStartHeight + periodLength) - 1)
387+ let checks = [if ((i.originCaller == mainTreasuryAddressOrFail))
388+ then true
389+ else throwErr("permission denied"), if ((nextBlockToProcess > periodEndHeight))
390+ then true
391+ else throwErr("unprocessed blocks"), if ((donationPartInWaves >= 0))
392+ then true
393+ else throwErr("invalid donation part"), if ((lpPartInWaves >= 0))
394+ then true
395+ else throwErr("invalid lp part"), if ((claimPartInWaves >= 0))
396+ then true
397+ else throwErr("invalid claim part"), if ((powerStakePartInWaves >= 0))
398+ then true
399+ else throwErr("invalid PWR stake part")]
400+ if ((checks == checks))
401+ then {
402+ let $t01150211607 = calculatePrice(lpPartInWaves)
403+ let newPrice = $t01150211607._1
404+ let lpAssetAmountToBurn = $t01150211607._2
405+ let lpAssetFinalQuantity = $t01150211607._3
406+ let newPeriod = (currentPeriodOrFail + 1)
407+ func addNewAction (actions,payment) = {
408+ let $t01175511817 = actions
409+ let scriptTransfers = $t01175511817._1
410+ let assetIdsString = $t01175511817._2
411+ let amountsString = $t01175511817._3
412+ let paymentAmount = payment.amount
413+ let paymentAssetId = payment.assetId
414+ let newAssetIdsString = ("%s" + makeString([assetIdsString, assetIdToString(paymentAssetId)], SEP))
415+ let newAmountsString = ("%d" + makeString([amountsString, toString(paymentAmount)], SEP))
416+ let newScriptTransfer = ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)
417+ $Tuple3((scriptTransfers :+ newScriptTransfer), newAssetIdsString, newAmountsString)
418+ }
419+
420+ let $t01227712368 = {
421+ let $l = i.payments
422+ let $s = size($l)
423+ let $acc0 = $Tuple3(nil, "", "")
424+ func $f0_1 ($a,$i) = if (($i >= $s))
425+ then $a
426+ else addNewAction($a, $l[$i])
427+
428+ func $f0_2 ($a,$i) = if (($i >= $s))
429+ then $a
430+ else throw("List size exceeds 10")
431+
432+ $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)
433+ }
434+ let scriptTransfers = $t01227712368._1
435+ let AssetIds = $t01227712368._2
436+ let Amounts = $t01227712368._3
437+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), powerStakePartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimWavesAmount(currentPeriodOrFail), claimPartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), lpPartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donationPartInWaves], nil), invoke(factoryAddressOrFail, "stringEntry", [keyPeriodWithdrawalAssetIds(newPeriod), AssetIds], nil), invoke(factoryAddressOrFail, "stringEntry", [keyPeriodWithdrawalAmounts(newPeriod), Amounts], nil)]
438+ $Tuple2(scriptTransfers, factoryActions)
439+ }
440+ else throw("Strict value is not equal to itself.")
441+ }
41442 else throw("Strict value is not equal to itself.")
42443 }
43444
445+
446+
447+@Callable(i)
448+func finalizeREADONLY (donationPartInWaves,lpPartInWaves,claimPartInWaves,powerStakePartInWaves) = {
449+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
450+ let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
451+ let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
452+ let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
453+ let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
454+ let periodEndHeight = ((currentStartHeight + periodLength) - 1)
455+ let checks = [if ((nextBlockToProcess > periodEndHeight))
456+ then true
457+ else throwErr("unprocessed blocks"), if ((donationPartInWaves >= 0))
458+ then true
459+ else throwErr("invalid donation part"), if ((lpPartInWaves >= 0))
460+ then true
461+ else throwErr("invalid lp part"), if ((claimPartInWaves >= 0))
462+ then true
463+ else throwErr("invalid claim part"), if ((powerStakePartInWaves >= 0))
464+ then true
465+ else throwErr("invalid PWR stake part")]
466+ if ((checks == checks))
467+ then {
468+ let $t01524715352 = calculatePrice(lpPartInWaves)
469+ let newPrice = $t01524715352._1
470+ let lpAssetAmountToBurn = $t01524715352._2
471+ let lpAssetFinalQuantity = $t01524715352._3
472+ $Tuple2(nil, $Tuple6(claimPartInWaves, lpPartInWaves, donationPartInWaves, newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity))
473+ }
474+ else throw("Strict value is not equal to itself.")
475+ }
476+
477+
478+
479+@Callable(i)
480+func invest (userAddressBytes) = {
481+ let checkCaller = onlyFactory(i)
482+ if ((checkCaller == checkCaller))
483+ then {
484+ let userAddress = Address(userAddressBytes)
485+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
486+ let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
487+ let investPeriodLength = getIntegerValue(factoryAddressOrFail, keyInvestPeriodLength())
488+ let heightCheck = if (((currentStartHeight + investPeriodLength) > height))
489+ then true
490+ else throwErr("too late to invest in this period")
491+ if ((heightCheck == heightCheck))
492+ then {
493+ let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
494+ let payment = if ((size(i.payments) == 1))
495+ then i.payments[0]
496+ else throwErr("invalid payments")
497+ let $t01646116638 = if (if ((payment.assetId == unit))
498+ then (payment.amount > 0)
499+ else false)
500+ then $Tuple2(payment.amount, payment.assetId)
501+ else throwErr("invalid payment amount")
502+ let paymentAmount = $t01646116638._1
503+ let paymentAssetId = $t01646116638._2
504+ let treasuryPart = valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0)
505+ let paymentsWithoutTreasuryPart = fraction(paymentAmount, (SCALE8 - treasuryPart), SCALE8)
506+ let lpAssetAmount = if ((currentPriceOrFail > 0))
507+ then fraction(paymentsWithoutTreasuryPart, SCALE8, currentPriceOrFail)
508+ else 0
509+ let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
510+ let actions = [ScriptTransfer(mainTreasuryAddressOrFail, paymentsWithoutTreasuryPart, paymentAssetId), ScriptTransfer(businessTreasuryAddressOrFail, treasuryPart, paymentAssetId)]
511+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + paymentsWithoutTreasuryPart)], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
512+ $Tuple2(actions, factoryActions)
513+ }
514+ else throw("Strict value is not equal to itself.")
515+ }
516+ else throw("Strict value is not equal to itself.")
517+ }
518+
519+
520+
521+@Callable(i)
522+func withdraw (userAddressBytes) = {
523+ let checkCaller = onlyFactory(i)
524+ if ((checkCaller == checkCaller))
525+ then {
526+ let userAddress = Address(userAddressBytes)
527+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
528+ let payment = if ((size(i.payments) == 1))
529+ then i.payments[0]
530+ else throwErr(wrapErr("invalid payments"))
531+ let paymentAssetId = if ((payment.assetId == lpAssetIdOrFail))
532+ then lpAssetIdOrFail
533+ else throwErr("invalid payment asset")
534+ let paymentAmount = if ((payment.amount > 0))
535+ then payment.amount
536+ else throwErr("invalid payment amount")
537+ let withdrawal = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
538+ let actions = [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
539+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), (withdrawal + paymentAmount)], nil), invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, i.transactionId), valueWithdrawalRequest(PENDING, paymentAmount, (currentPeriodOrFail + 1), unit)], nil)]
540+ if ((factoryActions == factoryActions))
541+ then $Tuple2(actions, factoryActions)
542+ else throw("Strict value is not equal to itself.")
543+ }
544+ else throw("Strict value is not equal to itself.")
545+ }
546+
547+
548+
549+@Callable(i)
550+func cancelWithdraw (userAddressBytes,txId) = {
551+ let checkCaller = onlyFactory(i)
552+ if ((checkCaller == checkCaller))
553+ then {
554+ let userAddress = Address(userAddressBytes)
555+ let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
556+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
557+ let $t01937219485 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
558+ let status = $t01937219485._1
559+ let lpAssetAmount = $t01937219485._2
560+ let targetPeriod = $t01937219485._3
561+ let claimTxId = $t01937219485._4
562+ let checks = [if ((status == PENDING))
563+ then true
564+ else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail))
565+ then true
566+ else throwErr("invalid withdrawal request period")]
567+ if ((checks == checks))
568+ then {
569+ let withdrawal = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyWithdrawal()), wrapErr("invalid total withdrawal amount"))
570+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), if ((withdrawal >= lpAssetAmount))
571+ then (withdrawal - lpAssetAmount)
572+ else throwErr("invalid withdrawal amount")], nil), invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
573+ if ((factoryActions == factoryActions))
574+ then $Tuple2(nil, factoryActions)
575+ else throw("Strict value is not equal to itself.")
576+ }
577+ else throw("Strict value is not equal to itself.")
578+ }
579+ else throw("Strict value is not equal to itself.")
580+ }
581+
582+
583+
584+@Callable(i)
585+func claimCollateral (userAddressBytes,txId) = {
586+ let checkCaller = onlyFactory(i)
587+ if ((checkCaller == checkCaller))
588+ then {
589+ let $t02047120656 = claimCollateralINTERNAL(userAddressBytes, fromBase58String(txId))
590+ let userAddress = $t02047120656._1
591+ let lpAssetAmount = $t02047120656._2
592+ let targetPeriod = $t02047120656._3
593+ let wavesAmount = $t02047120656._4
594+ let assetsString = $t02047120656._5
595+ let amountsString = $t02047120656._6
596+ let assetsList = removeByIndex(split_51C(assetsString, SEP), 0)
597+ let amountsList = removeByIndex(split_51C(amountsString, SEP), 0)
598+ let factoryActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, fromBase58String(txId))], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawalHistory(userAddress, fromBase58String(txId)), lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAssets", [userAddressBytes, assetsList, amountsList], nil)]
599+ $Tuple2(nil, factoryActions)
600+ }
601+ else throw("Strict value is not equal to itself.")
602+ }
603+
604+
605+
606+@Callable(i)
607+func claimCollateralBulk (userAddressBytes,txIds) = {
608+ let checkCaller = onlyFactory(i)
609+ if ((checkCaller == checkCaller))
610+ then {
611+ func addNewAction (state,txId) = {
612+ let $t02141421613 = claimCollateralINTERNAL(userAddressBytes, fromBase58String(txId))
613+ let userAddress = $t02141421613._1
614+ let lpAssetAmount = $t02141421613._2
615+ let targetPeriod = $t02141421613._3
616+ let wavesAmount = $t02141421613._4
617+ let assetsString = $t02141421613._5
618+ let amountsString = $t02141421613._6
619+ let assetsList = removeByIndex(split_51C(assetsString, SEP), 0)
620+ let amountsList = removeByIndex(split_51C(amountsString, SEP), 0)
621+ let newActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, fromBase58String(txId))], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawalHistory(userAddress, fromBase58String(txId)), lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAssets", [userAddressBytes, assetsList, amountsList], nil)]
622+ (state ++ newActions)
623+ }
624+
625+ let allFactoryActions = {
626+ let $l = txIds
627+ let $s = size($l)
628+ let $acc0 = nil
629+ func $f0_1 ($a,$i) = if (($i >= $s))
630+ then $a
631+ else addNewAction($a, $l[$i])
632+
633+ func $f0_2 ($a,$i) = if (($i >= $s))
634+ then $a
635+ else throw("List size exceeds 10")
636+
637+ $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)
638+ }
639+ $Tuple2(nil, allFactoryActions)
640+ }
641+ else throw("Strict value is not equal to itself.")
642+ }
643+
644+
645+
646+@Callable(i)
647+func claimCollateralREADONLY (userAddressBytes,txId) = {
648+ let response = claimCollateralREADONLYStringResponse(userAddressBytes, fromBase58String(txId))
649+ $Tuple2(nil, response)
650+ }
651+
652+
653+
654+@Callable(i)
655+func claimCollateralBulkREADONLY (userAddressBytes,txIds) = {
656+ func processTxId (state,txId) = {
657+ let response = claimCollateralREADONLYStringResponse(userAddressBytes, fromBase58String(txId))
658+ (state :+ response)
659+ }
660+
661+ let allResponses = {
662+ let $l = txIds
663+ let $s = size($l)
664+ let $acc0 = nil
665+ func $f0_1 ($a,$i) = if (($i >= $s))
666+ then $a
667+ else processTxId($a, $l[$i])
668+
669+ func $f0_2 ($a,$i) = if (($i >= $s))
670+ then $a
671+ else throw("List size exceeds 10")
672+
673+ $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)
674+ }
675+ $Tuple2(nil, allResponses)
676+ }
677+
678+
679+
680+@Callable(i)
681+func processBlocks (userAddressBytes) = {
682+ let checkCaller = onlyFactory(i)
683+ if ((checkCaller == checkCaller))
684+ then {
685+ let userAddress = Address(userAddressBytes)
686+ let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
687+ let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
688+ let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
689+ let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
690+ let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
691+ let periodEndHeight = ((currentStartHeight + periodLength) - 1)
692+ let blocksProcessingBatchSizeMax = 20
693+ let blocksProcessingBatchSize = if (if (if ((height >= nextBlockToProcess))
694+ then if ((nextBlockToProcess >= currentStartHeight))
695+ then true
696+ else (currentPeriodOrFail == 0)
697+ else false)
698+ then (periodEndHeight >= nextBlockToProcess)
699+ else false)
700+ then min([((periodEndHeight - nextBlockToProcess) + 1), blocksProcessingBatchSizeMax])
701+ else throwErr(wrapErr("invalid target block"))
702+ let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward"))
703+ let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSize)
704+ let blockProcessingRewardByGeneratorRemainder = (blockProcessingReward - (blockProcessingRewardByGenerator * blocksProcessingBatchSize))
705+ func map (acc,inc) = if ((inc >= blocksProcessingBatchSize))
706+ then acc
707+ else {
708+ let targetBlockHeight = (nextBlockToProcess + inc)
709+ let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info"))
710+ let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, proxyTreasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight))))
711+ let generator = targetBlockInfo.generator
712+ let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(generator)), 0)
713+ let callerReward = if ((inc == (blocksProcessingBatchSize - 1)))
714+ then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder)
715+ else blockProcessingRewardByGenerator
716+ let powerShareRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyPowerShareRatio()), 0), SCALE8])])
717+ let shareAmountToPower = fraction((treasuryRewardOrFail - callerReward), powerShareRatio, SCALE8)
718+ let lpAssetAmount = if ((currentPriceOrFail > 0))
719+ then fraction(((treasuryRewardOrFail - callerReward) - shareAmountToPower), SCALE8, currentPriceOrFail)
720+ else 0
721+ let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount), toString(shareAmountToPower)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)]
722+ if ((factoryActionsSingle == factoryActionsSingle))
723+ then {
724+ let $t02670426758 = acc
725+ let lpAssetAcc = $t02670426758._1
726+ let rewardAcc = $t02670426758._2
727+ let powerShareDataTuple = $t02670426758._3
728+ let $t02676526831 = powerShareDataTuple
729+ let powerShareAcc = $t02676526831._1
730+ let generatorPowerShareList = $t02676526831._2
731+ let newGeneratorPowerShareList = (generatorPowerShareList :+ $Tuple2(toString(generator), shareAmountToPower))
732+ $Tuple3((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail), $Tuple2((powerShareAcc + shareAmountToPower), newGeneratorPowerShareList))
733+ }
734+ else throw("Strict value is not equal to itself.")
735+ }
736+
737+ let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
738+ let $t02718627292 = {
739+ let $l = list
740+ let $s = size($l)
741+ let $acc0 = $Tuple3(0, 0, $Tuple2(0, nil))
742+ func $f0_1 ($a,$i) = if (($i >= $s))
743+ then $a
744+ else map($a, $l[$i])
745+
746+ func $f0_2 ($a,$i) = if (($i >= $s))
747+ then $a
748+ else throw("List size exceeds 20")
749+
750+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
751+ }
752+ if (($t02718627292 == $t02718627292))
753+ then {
754+ let powerShareDataTuple = $t02718627292._3
755+ let rewardAmountTotal = $t02718627292._2
756+ let lpAssetAmountTotal = $t02718627292._1
757+ let $t02729627365 = powerShareDataTuple
758+ let amountToPowerTotal = $t02729627365._1
759+ let powerShareAmountsList = $t02729627365._2
760+ let businessTreasuryPart = valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0)
761+ let rewardToBusinessTreasuryAmount = fraction(rewardAmountTotal, businessTreasuryPart, SCALE8)
762+ let rewardToMainTreasuryAmount = (((rewardAmountTotal - rewardToBusinessTreasuryAmount) - blockProcessingReward) - amountToPowerTotal)
763+ let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
764+ let powerShareActions = if ((amountToPowerTotal > 0))
765+ then {
766+ let transferAction = [invoke(factoryAddressOrFail, "transferFromProxyTreasury", [factoryAddressOrFail.bytes, amountToPowerTotal], nil)]
767+ if ((transferAction == transferAction))
768+ then {
769+ let totalPowerAmount = invoke(factoryAddressOrFail, "swap", [powerAssetIdStringOrFail], [AttachedPayment(unit, amountToPowerTotal)])
770+ if ((totalPowerAmount == totalPowerAmount))
771+ then {
772+ let totalPowerAmountInt = match totalPowerAmount {
773+ case pAmount: Int =>
774+ pAmount
775+ case _ =>
776+ 0
777+ }
778+ func stakePowerInvoke (acc,next) = {
779+ let $t02844328478 = next
780+ let generator = $t02844328478._1
781+ let shareAmount = $t02844328478._2
782+ if ((amountToPowerTotal > 0))
783+ then {
784+ let powerAmount = fraction(shareAmount, totalPowerAmountInt, amountToPowerTotal)
785+ let inv = invoke(factoryAddressOrFail, "powerStake", [fromBase58String(generator)], [AttachedPayment(fromBase58String(powerAssetIdStringOrFail), powerAmount)])
786+ if ((inv == inv))
787+ then nil
788+ else throw("Strict value is not equal to itself.")
789+ }
790+ else nil
791+ }
792+
793+ let powerStakesActions = {
794+ let $l = powerShareAmountsList
795+ let $s = size($l)
796+ let $acc0 = 0
797+ func $f1_1 ($a,$i) = if (($i >= $s))
798+ then $a
799+ else stakePowerInvoke($a, $l[$i])
800+
801+ func $f1_2 ($a,$i) = if (($i >= $s))
802+ then $a
803+ else throw("List size exceeds 20")
804+
805+ $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
806+ }
807+ if ((powerStakesActions == powerStakesActions))
808+ then nil
809+ else throw("Strict value is not equal to itself.")
810+ }
811+ else throw("Strict value is not equal to itself.")
812+ }
813+ else throw("Strict value is not equal to itself.")
814+ }
815+ else nil
816+ if ((powerShareActions == powerShareActions))
817+ then {
818+ let actions = [invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [mainTreasuryAddressOrFail.bytes, rewardToMainTreasuryAmount], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [businessTreasuryAddressOrFail.bytes, rewardToBusinessTreasuryAmount], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + rewardToMainTreasuryAmount)], nil)]
819+ if ((actions == actions))
820+ then $Tuple2(nil, unit)
821+ else throw("Strict value is not equal to itself.")
822+ }
823+ else throw("Strict value is not equal to itself.")
824+ }
825+ else throw("Strict value is not equal to itself.")
826+ }
827+ else throw("Strict value is not equal to itself.")
828+ }
829+
830+
831+@Verifier(tx)
832+func verify () = {
833+ let publicKey = match getManagerPublicKeyOrUnit() {
834+ case pub: ByteVector =>
835+ pub
836+ case _ =>
837+ tx.senderPublicKey
838+ }
839+ sigVerify(tx.bodyBytes, tx.proofs[0], publicKey)
840+ }
44841

github/deemru/w8io/169f3d6 
65.35 ms