tx · APaDdYrnKcKN8UP4qsNRHFQwgpYxe6jDGUXofWumxoyL

3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP:  -0.01500000 Waves

2023.06.13 10:22 [2620597] smart account 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP > SELF 0.00000000 Waves

{ "type": 13, "id": "APaDdYrnKcKN8UP4qsNRHFQwgpYxe6jDGUXofWumxoyL", "fee": 1500000, "feeAssetId": null, "timestamp": 1686640964786, "version": 2, "chainId": 84, "sender": "3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP", "senderPublicKey": "AoKo4segKHU4DeJnxXQYJj2u7J6XJeux6r8KLW52cd2Q", "proofs": [ "5prP6HAQahYsftG2EHzCATD7icfDwAaLT4SztiKYz3jMHG8RTRj9hBAEHEx6N1o7YNPLFE7BaNWtoo5YbgKsHMmY" ], "script": "base64:BwIqCAISAwoBAhIGCgQBAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECIgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgERa2V5RmFjdG9yeUFkZHJlc3MACQC5CQIJAMwIAgICJXMJAMwIAgIHZmFjdG9yeQUDbmlsBQNTRVABDGtleUxwQXNzZXRJZAAJALkJAgkAzAgCAgIlcwkAz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QwFWZSmKqeqRVCycJeTx2bRyA8zeGjs2iz Next: 2gXw4zBaDWfMqYvJ3C8MSDrbNddPqjuU1aPjMc33sAAY Diff:
OldNewDifferences
1111
1212 let FINISHED = "FINISHED"
1313
14+let WAVES = "WAVES"
15+
1416 func wrapErr (s) = ((CONTRACT_NAME + ": ") + s)
1517
1618
1719 func throwErr (s) = throw(wrapErr(s))
20+
21+
22+func assetIdToString (assetId) = match assetId {
23+ case b: ByteVector =>
24+ toBase58String(b)
25+ case _: Unit =>
26+ WAVES
27+ case _ =>
28+ throw("Match error")
29+}
1830
1931
2032 func keyFactoryAddress () = makeString(["%s", "factory"], SEP)
2436
2537
2638 func keyTreasuryAddress () = makeString(["%s", "treasury"], SEP)
39+
40+
41+func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP)
2742
2843
2944 func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP)
140155
141156 func rewardForOption (rewards,target) = {
142157 let s = size(rewards)
143- let $t033473372 = rewards[0]
144- let a0 = $t033473372._1
145- let r0 = $t033473372._2
146- let $t033753400 = rewards[1]
147- let a1 = $t033753400._1
148- let r1 = $t033753400._2
149- let $t034033428 = rewards[2]
150- let a2 = $t034033428._1
151- let r2 = $t034033428._2
158+ let $t036223647 = rewards[0]
159+ let a0 = $t036223647._1
160+ let r0 = $t036223647._2
161+ let $t036503675 = rewards[1]
162+ let a1 = $t036503675._1
163+ let r1 = $t036503675._2
164+ let $t036783703 = rewards[2]
165+ let a2 = $t036783703._1
166+ let r2 = $t036783703._2
152167 if (if ((s > 0))
153168 then (a0 == target)
154169 else false)
233248 let lpAssetAmount = if ((currentPriceOrFail > 0))
234249 then fraction(paymentAmount, SCALE8, currentPriceOrFail)
235250 else 0
236- let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", ["invested__WAVES", 0], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "transferWaves", [treasuryAddressOrFail.bytes, paymentAmount], [AttachedPayment(unit, paymentAmount)])]
251+ let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
252+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + paymentAmount)], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "transferWaves", [treasuryAddressOrFail.bytes, paymentAmount], [AttachedPayment(unit, paymentAmount)])]
237253 $Tuple2(nil, factoryActions)
238254 }
239255 else throw("Strict value is not equal to itself.")
274290 then {
275291 let userAddress = Address(userAddressBytes)
276292 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
277- let $t086788791 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
278- let status = $t086788791._1
279- let lpAssetAmount = $t086788791._2
280- let targetPeriod = $t086788791._3
281- let claimTxId = $t086788791._4
293+ let $t090659178 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
294+ let status = $t090659178._1
295+ let lpAssetAmount = $t090659178._2
296+ let targetPeriod = $t090659178._3
297+ let claimTxId = $t090659178._4
282298 if ((status == PENDING))
283299 then {
284300 let factoryActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
301317 let userAddress = Address(userAddressBytes)
302318 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
303319 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
304- let $t096629775 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
305- let status = $t096629775._1
306- let lpAssetAmount = $t096629775._2
307- let targetPeriod = $t096629775._3
308- let claimTxId = $t096629775._4
320+ let $t01004910162 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
321+ let status = $t01004910162._1
322+ let lpAssetAmount = $t01004910162._2
323+ let targetPeriod = $t01004910162._3
324+ let claimTxId = $t01004910162._4
309325 if ((status == FINISHED))
310326 then throwErr("invalid withdrawal request status")
311327 else if ((targetPeriod > currentPeriodOrFail))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let CONTRACT_NAME = "calculator.ride"
77
88 let SCALE8 = 100000000
99
1010 let PENDING = "PENDING"
1111
1212 let FINISHED = "FINISHED"
1313
14+let WAVES = "WAVES"
15+
1416 func wrapErr (s) = ((CONTRACT_NAME + ": ") + s)
1517
1618
1719 func throwErr (s) = throw(wrapErr(s))
20+
21+
22+func assetIdToString (assetId) = match assetId {
23+ case b: ByteVector =>
24+ toBase58String(b)
25+ case _: Unit =>
26+ WAVES
27+ case _ =>
28+ throw("Match error")
29+}
1830
1931
2032 func keyFactoryAddress () = makeString(["%s", "factory"], SEP)
2133
2234
2335 func keyLpAssetId () = makeString(["%s", "lpAssetId"], SEP)
2436
2537
2638 func keyTreasuryAddress () = makeString(["%s", "treasury"], SEP)
39+
40+
41+func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP)
2742
2843
2944 func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP)
3045
3146
3247 func keyClaimed (userAddress) = makeString(["%s%s", "claimed", toString(userAddress)], SEP)
3348
3449
3550 func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
3651
3752
3853 func keyPriceForPeriod (period) = makeString(["%s%d", "price", toString(period)], SEP)
3954
4055
4156 func keyStartHeight (period) = makeString(["%s%d", "startHeight", toString(period)], SEP)
4257
4358
4459 func keyPeriodLength () = "%s__periodLength"
4560
4661
4762 func keyBlockProcessingReward () = "%s__blockProcessingReward"
4863
4964
5065 func keyNextBlockToProcess () = "%s__nextBlockToProcess"
5166
5267
5368 func keyBlockProcessed (height) = makeString(["%s%d", "blockProcessed", toString(height)], SEP)
5469
5570
5671 func keyWithdrawalRequest (userAddress,txId) = makeString(["%s%s%s", "withdrawal", toString(userAddress), toBase58String(txId)], SEP)
5772
5873
5974 func valueWithdrawalRequest (status,lpAssetAmount,targetPeriod,claimTxId) = {
6075 let claimTxIdStr = match claimTxId {
6176 case b: ByteVector =>
6277 toBase58String(b)
6378 case _: Unit =>
6479 "SOON"
6580 case _ =>
6681 throw("Match error")
6782 }
6883 makeString(["%s%d%d%s", status, toString(lpAssetAmount), toString(targetPeriod), claimTxIdStr], SEP)
6984 }
7085
7186
7287 func parseWithdrawalRequestValueOrFail (s) = {
7388 let parts = split(s, SEP)
7489 if ((size(parts) == 5))
7590 then {
7691 let status = parts[1]
7792 let lpAssetAmount = valueOrErrorMessage(parseInt(parts[2]), wrapErr("invalid lpAssetAmount"))
7893 let targetPeriod = valueOrErrorMessage(parseInt(parts[3]), wrapErr("invalid targetPeriod"))
7994 let claimTxId = parts[4]
8095 $Tuple4(status, lpAssetAmount, targetPeriod, claimTxId)
8196 }
8297 else throwErr("invalid withdrawal request value")
8398 }
8499
85100
86101 let factoryAddressOption = match getString(this, keyFactoryAddress()) {
87102 case s: String =>
88103 addressFromString(s)
89104 case _: Unit =>
90105 unit
91106 case _ =>
92107 throw("Match error")
93108 }
94109
95110 let factoryAddressOrFail = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address"))
96111
97112 let lpAssetIdOption = match factoryAddressOption {
98113 case a: Address =>
99114 match getString(a, keyLpAssetId()) {
100115 case s: String =>
101116 fromBase58String(s)
102117 case _: Unit =>
103118 unit
104119 case _ =>
105120 throw("Match error")
106121 }
107122 case _: Unit =>
108123 unit
109124 case _ =>
110125 throw("Match error")
111126 }
112127
113128 let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId"))
114129
115130 let treasuryAddressOption = match factoryAddressOption {
116131 case a: Address =>
117132 match getString(a, keyTreasuryAddress()) {
118133 case s: String =>
119134 addressFromString(s)
120135 case _: Unit =>
121136 unit
122137 case _ =>
123138 throw("Match error")
124139 }
125140 case _: Unit =>
126141 unit
127142 case _ =>
128143 throw("Match error")
129144 }
130145
131146 let treasuryAddressOrFail = valueOrErrorMessage(treasuryAddressOption, wrapErr("invalid treasury address"))
132147
133148 func onlyAddress (i,address) = if ((i.caller == address))
134149 then true
135150 else throwErr("permission denied")
136151
137152
138153 func onlyFactory (i) = onlyAddress(i, factoryAddressOrFail)
139154
140155
141156 func rewardForOption (rewards,target) = {
142157 let s = size(rewards)
143- let $t033473372 = rewards[0]
144- let a0 = $t033473372._1
145- let r0 = $t033473372._2
146- let $t033753400 = rewards[1]
147- let a1 = $t033753400._1
148- let r1 = $t033753400._2
149- let $t034033428 = rewards[2]
150- let a2 = $t034033428._1
151- let r2 = $t034033428._2
158+ let $t036223647 = rewards[0]
159+ let a0 = $t036223647._1
160+ let r0 = $t036223647._2
161+ let $t036503675 = rewards[1]
162+ let a1 = $t036503675._1
163+ let r1 = $t036503675._2
164+ let $t036783703 = rewards[2]
165+ let a2 = $t036783703._1
166+ let r2 = $t036783703._2
152167 if (if ((s > 0))
153168 then (a0 == target)
154169 else false)
155170 then r0
156171 else if (if ((s > 1))
157172 then (a1 == target)
158173 else false)
159174 then r1
160175 else if (if ((s > 2))
161176 then (a2 == target)
162177 else false)
163178 then r2
164179 else unit
165180 }
166181
167182
168183 @Callable(i)
169184 func claimLP (userAddressBytes) = {
170185 let checkCaller = onlyFactory(i)
171186 if ((checkCaller == checkCaller))
172187 then {
173188 let userAddress = Address(userAddressBytes)
174189 let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(userAddress)), 0)
175190 let claimed = valueOrElse(getInteger(factoryAddressOrFail, keyClaimed(userAddress)), 0)
176191 let factoryActions = if ((available > 0))
177192 then [invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, available, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(userAddress), 0], nil), invoke(factoryAddressOrFail, "stringEntry", [keyClaimed(userAddress), (claimed + available)], nil)]
178193 else throwErr("nothing to claim")
179194 $Tuple2(nil, factoryActions)
180195 }
181196 else throw("Strict value is not equal to itself.")
182197 }
183198
184199
185200
186201 @Callable(i)
187202 func finalize (newTreasuryVolumeInWaves,xtnPrice,pwrManagersBonus,treasuryVolumeDiffAllocationCoef) = {
188203 let checks = [if ((i.originCaller == factoryAddressOrFail))
189204 then true
190205 else throwErr("permission denied"), if ((newTreasuryVolumeInWaves >= 0))
191206 then true
192207 else throwErr("invalid new treasury volume"), if ((xtnPrice >= 0))
193208 then true
194209 else throwErr("invalid XTN price"), if (if ((pwrManagersBonus >= 0))
195210 then (SCALE8 >= pwrManagersBonus)
196211 else false)
197212 then true
198213 else throwErr("invalid PWR managers bonus"), if (if ((treasuryVolumeDiffAllocationCoef >= -(SCALE8)))
199214 then (SCALE8 >= treasuryVolumeDiffAllocationCoef)
200215 else false)
201216 then true
202217 else throwErr("invalid treasury volume diff allocation coefficient")]
203218 if ((checks == checks))
204219 then {
205220 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
206221 let newPeriod = (currentPeriodOrFail + 1)
207222 let newPrice = SCALE8
208223 let lpAssetAmountToBurn = 0
209224 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil)]
210225 $Tuple2(nil, factoryActions)
211226 }
212227 else throw("Strict value is not equal to itself.")
213228 }
214229
215230
216231
217232 @Callable(i)
218233 func invest (userAddressBytes) = {
219234 let checkCaller = onlyFactory(i)
220235 if ((checkCaller == checkCaller))
221236 then {
222237 let userAddress = Address(userAddressBytes)
223238 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
224239 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
225240 let payment = if ((size(i.payments) == 1))
226241 then i.payments[0]
227242 else throwErr("invalid payments")
228243 let paymentAmount = if (if ((payment.assetId == unit))
229244 then (payment.amount > 0)
230245 else false)
231246 then payment.amount
232247 else throwErr("invalid payment amount")
233248 let lpAssetAmount = if ((currentPriceOrFail > 0))
234249 then fraction(paymentAmount, SCALE8, currentPriceOrFail)
235250 else 0
236- let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", ["invested__WAVES", 0], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "transferWaves", [treasuryAddressOrFail.bytes, paymentAmount], [AttachedPayment(unit, paymentAmount)])]
251+ let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
252+ let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + paymentAmount)], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "transferWaves", [treasuryAddressOrFail.bytes, paymentAmount], [AttachedPayment(unit, paymentAmount)])]
237253 $Tuple2(nil, factoryActions)
238254 }
239255 else throw("Strict value is not equal to itself.")
240256 }
241257
242258
243259
244260 @Callable(i)
245261 func withdraw (userAddressBytes) = {
246262 let checkCaller = onlyFactory(i)
247263 if ((checkCaller == checkCaller))
248264 then {
249265 let userAddress = Address(userAddressBytes)
250266 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
251267 let payment = if ((size(i.payments) == 1))
252268 then i.payments[0]
253269 else throwErr(wrapErr("invalid payments"))
254270 let paymentAssetId = if ((payment.assetId == lpAssetIdOrFail))
255271 then lpAssetIdOrFail
256272 else throwErr("invalid payment asset")
257273 let paymentAmount = if ((payment.amount > 0))
258274 then payment.amount
259275 else throwErr("invalid payment amount")
260276 let factoryActions = [invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, i.transactionId), valueWithdrawalRequest(PENDING, paymentAmount, (currentPeriodOrFail + 1), unit)], nil)]
261277 if ((factoryActions == factoryActions))
262278 then $Tuple2([ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)], factoryActions)
263279 else throw("Strict value is not equal to itself.")
264280 }
265281 else throw("Strict value is not equal to itself.")
266282 }
267283
268284
269285
270286 @Callable(i)
271287 func cancelWithdraw (userAddressBytes,txId) = {
272288 let checkCaller = onlyFactory(i)
273289 if ((checkCaller == checkCaller))
274290 then {
275291 let userAddress = Address(userAddressBytes)
276292 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
277- let $t086788791 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
278- let status = $t086788791._1
279- let lpAssetAmount = $t086788791._2
280- let targetPeriod = $t086788791._3
281- let claimTxId = $t086788791._4
293+ let $t090659178 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
294+ let status = $t090659178._1
295+ let lpAssetAmount = $t090659178._2
296+ let targetPeriod = $t090659178._3
297+ let claimTxId = $t090659178._4
282298 if ((status == PENDING))
283299 then {
284300 let factoryActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
285301 if ((factoryActions == factoryActions))
286302 then $Tuple2(nil, factoryActions)
287303 else throw("Strict value is not equal to itself.")
288304 }
289305 else throwErr("invalid withdrawal request status")
290306 }
291307 else throw("Strict value is not equal to itself.")
292308 }
293309
294310
295311
296312 @Callable(i)
297313 func claimWaves (userAddressBytes,txId) = {
298314 let checkCaller = onlyFactory(i)
299315 if ((checkCaller == checkCaller))
300316 then {
301317 let userAddress = Address(userAddressBytes)
302318 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
303319 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
304- let $t096629775 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
305- let status = $t096629775._1
306- let lpAssetAmount = $t096629775._2
307- let targetPeriod = $t096629775._3
308- let claimTxId = $t096629775._4
320+ let $t01004910162 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
321+ let status = $t01004910162._1
322+ let lpAssetAmount = $t01004910162._2
323+ let targetPeriod = $t01004910162._3
324+ let claimTxId = $t01004910162._4
309325 if ((status == FINISHED))
310326 then throwErr("invalid withdrawal request status")
311327 else if ((targetPeriod > currentPeriodOrFail))
312328 then throwErr("invalid withdrawal request period")
313329 else {
314330 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
315331 let amount = if ((currentPriceOrFail > 0))
316332 then fraction(lpAssetAmount, currentPriceOrFail, SCALE8)
317333 else 0
318334 let factoryActions = [invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, txId), valueWithdrawalRequest(FINISHED, lpAssetAmount, targetPeriod, i.transactionId)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, amount], nil)]
319335 $Tuple2(nil, factoryActions)
320336 }
321337 }
322338 else throw("Strict value is not equal to itself.")
323339 }
324340
325341
326342
327343 @Callable(i)
328344 func processBlocks (userAddressBytes) = {
329345 let checkCaller = onlyFactory(i)
330346 if ((checkCaller == checkCaller))
331347 then {
332348 let userAddress = Address(userAddressBytes)
333349 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
334350 let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
335351 let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
336352 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
337353 let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
338354 let periodEndHeight = ((currentStartHeight + periodLength) - 1)
339355 let blocksProcessingBatchSizeMax = 40
340356 let blocksProcessingBatchSize = if (if (if ((height >= nextBlockToProcess))
341357 then if ((nextBlockToProcess >= currentStartHeight))
342358 then true
343359 else (currentPeriodOrFail == 0)
344360 else false)
345361 then (periodEndHeight >= nextBlockToProcess)
346362 else false)
347363 then min([((periodEndHeight - nextBlockToProcess) + 1), blocksProcessingBatchSizeMax])
348364 else throwErr(wrapErr("invalid target block"))
349365 let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward"))
350366 let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSize)
351367 let blockProcessingRewardByGeneratorRemainder = (blockProcessingReward - (blockProcessingRewardByGenerator * blocksProcessingBatchSize))
352368 func map (acc,inc) = if ((inc >= blocksProcessingBatchSize))
353369 then acc
354370 else {
355371 let targetBlockHeight = (nextBlockToProcess + inc)
356372 let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info"))
357373 let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, treasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight))))
358374 let generator = targetBlockInfo.generator
359375 let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(generator)), 0)
360376 let callerReward = if ((inc == (blocksProcessingBatchSize - 1)))
361377 then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder)
362378 else blockProcessingRewardByGenerator
363379 let lpAssetAmount = if ((currentPriceOrFail > 0))
364380 then fraction((treasuryRewardOrFail - callerReward), SCALE8, currentPriceOrFail)
365381 else 0
366382 let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)]
367383 if ((factoryActionsSingle == factoryActionsSingle))
368384 then (acc + lpAssetAmount)
369385 else throw("Strict value is not equal to itself.")
370386 }
371387
372388 let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
373389 let lpAssetAmountTotal = {
374390 let $l = list
375391 let $s = size($l)
376392 let $acc0 = 0
377393 func $f0_1 ($a,$i) = if (($i >= $s))
378394 then $a
379395 else map($a, $l[$i])
380396
381397 func $f0_2 ($a,$i) = if (($i >= $s))
382398 then $a
383399 else throw("List size exceeds 40")
384400
385401 $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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
386402 }
387403 if ((lpAssetAmountTotal == lpAssetAmountTotal))
388404 then {
389405 let actions = [invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil)]
390406 if ((actions == actions))
391407 then $Tuple2(nil, unit)
392408 else throw("Strict value is not equal to itself.")
393409 }
394410 else throw("Strict value is not equal to itself.")
395411 }
396412 else throw("Strict value is not equal to itself.")
397413 }
398414
399415
400416 @Verifier(tx)
401417 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
402418

github/deemru/w8io/169f3d6 
62.88 ms