tx · 3Lr7BqyTgiuPQMK8VPqWbFxwxUJMcBJ81f3LUhbLKDUz

3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA:  -0.02000000 Waves

2023.07.04 10:22 [2650856] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves

{ "type": 13, "id": "3Lr7BqyTgiuPQMK8VPqWbFxwxUJMcBJ81f3LUhbLKDUz", "fee": 2000000, "feeAssetId": null, "timestamp": 1688455396448, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "2SwkBDHMifF3g1tNghHgDc3wfFdyQVLnP2zTt8jiEvFWHmZxdcdGyspb2jAi246EyyojiS7XHRMvNTXWHgstQAP1" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKAADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUA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veHlUcmVhc3VyeQkAzAgCCAUUZmFjdG9yeUFkZHJlc3NPckZhaWwFYnl0ZXMJAMwIAgUVYmxvY2tQcm9jZXNzaW5nUmV3YXJkBQNuaWwFA25pbAUDbmlsAwkAAAIFB2FjdGlvbnMFB2FjdGlvbnMJAJQKAgUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYTPKr8=", "chainId": 84, "height": 2650856, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DFbGw4WMe7ETVdV3RiAk5Ne65tfEYzXyyraA2C3EvdEH Next: B5LvnzZWtybPu3ApyvpE1ahsjKTnQEZKn3ExATh18VGw Diff:
OldNewDifferences
66 let CONTRACT_NAME = "calculator.ride"
77
88 let SCALE8 = 100000000
9-
10-let SCALE6 = 1000000
119
1210 let PENDING = "PENDING"
1311
189187
190188 func rewardForOption (rewards,target) = {
191189 let s = size(rewards)
192- let $t043104335 = rewards[0]
193- let a0 = $t043104335._1
194- let r0 = $t043104335._2
195- let $t043384363 = rewards[1]
196- let a1 = $t043384363._1
197- let r1 = $t043384363._2
198- let $t043664391 = rewards[2]
199- let a2 = $t043664391._1
200- let r2 = $t043664391._2
190+ let $t042874312 = rewards[0]
191+ let a0 = $t042874312._1
192+ let r0 = $t042874312._2
193+ let $t043154340 = rewards[1]
194+ let a1 = $t043154340._1
195+ let r1 = $t043154340._2
196+ let $t043434368 = rewards[2]
197+ let a2 = $t043434368._1
198+ let r2 = $t043434368._2
201199 if (if ((s > 0))
202200 then (a0 == target)
203201 else false)
330328 let payment = if ((size(i.payments) == 1))
331329 then i.payments[0]
332330 else throwErr("invalid payments")
333- let $t01066110838 = if (if ((payment.assetId == unit))
331+ let $t01063810815 = if (if ((payment.assetId == unit))
334332 then (payment.amount > 0)
335333 else false)
336334 then $Tuple2(payment.amount, payment.assetId)
337335 else throwErr("invalid payment amount")
338- let paymentAmount = $t01066110838._1
339- let paymentAssetId = $t01066110838._2
336+ let paymentAmount = $t01063810815._1
337+ let paymentAssetId = $t01063810815._2
340338 let lpAssetAmount = if ((currentPriceOrFail > 0))
341339 then fraction(paymentAmount, SCALE8, currentPriceOrFail)
342340 else 0
386384 let userAddress = Address(userAddressBytes)
387385 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
388386 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
389- let $t01324813361 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
390- let status = $t01324813361._1
391- let lpAssetAmount = $t01324813361._2
392- let targetPeriod = $t01324813361._3
393- let claimTxId = $t01324813361._4
387+ let $t01322513338 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
388+ let status = $t01322513338._1
389+ let lpAssetAmount = $t01322513338._2
390+ let targetPeriod = $t01322513338._3
391+ let claimTxId = $t01322513338._4
394392 let checks = [if ((status == PENDING))
395393 then true
396394 else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail))
421419 let userAddress = Address(userAddressBytes)
422420 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
423421 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
424- let $t01469314806 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
425- let status = $t01469314806._1
426- let lpAssetAmount = $t01469314806._2
427- let targetPeriod = $t01469314806._3
428- let claimTxId = $t01469314806._4
422+ let $t01467014783 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
423+ let status = $t01467014783._1
424+ let lpAssetAmount = $t01467014783._2
425+ let targetPeriod = $t01467014783._3
426+ let claimTxId = $t01467014783._4
429427 if ((status == FINISHED))
430428 then throwErr("invalid withdrawal request status")
431429 else if ((targetPeriod > currentPeriodOrFail))
435433 let amount = if ((priceOrFail > 0))
436434 then fraction(lpAssetAmount, priceOrFail, SCALE8)
437435 else 0
438- 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)]
436+ let factoryActions = [invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, txId), valueWithdrawalRequest(FINISHED, lpAssetAmount, targetPeriod, i.transactionId)], nil), invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, amount], nil)]
439437 $Tuple2(nil, factoryActions)
440438 }
441439 }
486484 let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)]
487485 if ((factoryActionsSingle == factoryActionsSingle))
488486 then {
489- let $t01910619139 = acc
490- let lpAssetAcc = $t01910619139._1
491- let rewardAcc = $t01910619139._2
487+ let $t01901919052 = acc
488+ let lpAssetAcc = $t01901919052._1
489+ let rewardAcc = $t01901919052._2
492490 $Tuple2((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail))
493491 }
494492 else throw("Strict value is not equal to itself.")
495493 }
496494
497495 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]
498- let $t01940619482 = {
496+ let $t01931919395 = {
499497 let $l = list
500498 let $s = size($l)
501499 let $acc0 = $Tuple2(0, 0)
509507
510508 $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)
511509 }
512- if (($t01940619482 == $t01940619482))
510+ if (($t01931919395 == $t01931919395))
513511 then {
514- let rewardAmountTotal = $t01940619482._2
515- let lpAssetAmountTotal = $t01940619482._1
512+ let rewardAmountTotal = $t01931919395._2
513+ let lpAssetAmountTotal = $t01931919395._1
516514 let rewardToMainTreasuryAmount = (rewardAmountTotal - blockProcessingReward)
517515 let actions = [invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [featureTreasuryAddressOrFail.bytes, rewardToMainTreasuryAmount], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [factoryAddressOrFail.bytes, blockProcessingReward], nil)]
518516 if ((actions == actions))
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
9-
10-let SCALE6 = 1000000
119
1210 let PENDING = "PENDING"
1311
1412 let FINISHED = "FINISHED"
1513
1614 let WAVES = "WAVES"
1715
1816 func wrapErr (s) = ((CONTRACT_NAME + ": ") + s)
1917
2018
2119 func throwErr (s) = throw(wrapErr(s))
2220
2321
2422 func assetIdToString (assetId) = match assetId {
2523 case b: ByteVector =>
2624 toBase58String(b)
2725 case _: Unit =>
2826 WAVES
2927 case _ =>
3028 throw("Match error")
3129 }
3230
3331
3432 func abs (n) = if ((0 > n))
3533 then -(n)
3634 else n
3735
3836
3937 func keyFactoryAddress () = makeString(["%s", "factory"], SEP)
4038
4139
4240 func keyLpAssetId () = makeString(["%s", "lpAssetId"], SEP)
4341
4442
4543 func keyProxyTreasuryAddress () = makeString(["%s", "proxyTreasury"], SEP)
4644
4745
4846 func keyMainTreasuryAddress () = makeString(["%s", "mainTreasury"], SEP)
4947
5048
5149 func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP)
5250
5351
5452 func keyDonated (assetId) = makeString(["%s%s", "donated", assetIdToString(assetId)], SEP)
5553
5654
5755 func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP)
5856
5957
6058 func keyClaimed (userAddress) = makeString(["%s%s", "claimed", toString(userAddress)], SEP)
6159
6260
6361 func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
6462
6563
6664 func keyPriceForPeriod (period) = makeString(["%s%d", "price", toString(period)], SEP)
6765
6866
6967 func keyStartHeight (period) = makeString(["%s%d", "startHeight", toString(period)], SEP)
7068
7169
7270 func keyPeriodLength () = "%s__periodLength"
7371
7472
7573 func keyBlockProcessingReward () = "%s__blockProcessingReward"
7674
7775
7876 func keyNextBlockToProcess () = "%s__nextBlockToProcess"
7977
8078
8179 func keyBlockProcessed (height) = makeString(["%s%d", "blockProcessed", toString(height)], SEP)
8280
8381
8482 func keyWithdrawal () = "%s__withdrawal"
8583
8684
8785 func keyWithdrawalRequest (userAddress,txId) = makeString(["%s%s%s", "withdrawal", toString(userAddress), toBase58String(txId)], SEP)
8886
8987
9088 func valueWithdrawalRequest (status,lpAssetAmount,targetPeriod,claimTxId) = {
9189 let claimTxIdStr = match claimTxId {
9290 case b: ByteVector =>
9391 toBase58String(b)
9492 case _: Unit =>
9593 "SOON"
9694 case _ =>
9795 throw("Match error")
9896 }
9997 makeString(["%s%d%d%s", status, toString(lpAssetAmount), toString(targetPeriod), claimTxIdStr], SEP)
10098 }
10199
102100
103101 func parseWithdrawalRequestValueOrFail (s) = {
104102 let parts = split(s, SEP)
105103 if ((size(parts) == 5))
106104 then {
107105 let status = parts[1]
108106 let lpAssetAmount = valueOrErrorMessage(parseInt(parts[2]), wrapErr("invalid lpAssetAmount"))
109107 let targetPeriod = valueOrErrorMessage(parseInt(parts[3]), wrapErr("invalid targetPeriod"))
110108 let claimTxId = parts[4]
111109 $Tuple4(status, lpAssetAmount, targetPeriod, claimTxId)
112110 }
113111 else throwErr("invalid withdrawal request value")
114112 }
115113
116114
117115 let factoryAddressOption = match getString(this, keyFactoryAddress()) {
118116 case s: String =>
119117 addressFromString(s)
120118 case _: Unit =>
121119 unit
122120 case _ =>
123121 throw("Match error")
124122 }
125123
126124 let factoryAddressOrFail = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address"))
127125
128126 let lpAssetIdOption = match factoryAddressOption {
129127 case a: Address =>
130128 match getString(a, keyLpAssetId()) {
131129 case s: String =>
132130 fromBase58String(s)
133131 case _: Unit =>
134132 unit
135133 case _ =>
136134 throw("Match error")
137135 }
138136 case _: Unit =>
139137 unit
140138 case _ =>
141139 throw("Match error")
142140 }
143141
144142 let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId"))
145143
146144 let proxyTreasuryAddressOption = match factoryAddressOption {
147145 case a: Address =>
148146 match getString(a, keyProxyTreasuryAddress()) {
149147 case s: String =>
150148 addressFromString(s)
151149 case _: Unit =>
152150 unit
153151 case _ =>
154152 throw("Match error")
155153 }
156154 case _: Unit =>
157155 unit
158156 case _ =>
159157 throw("Match error")
160158 }
161159
162160 let proxyTreasuryAddressOrFail = valueOrErrorMessage(proxyTreasuryAddressOption, wrapErr("invalid proxy treasury address"))
163161
164162 let featureTreasuryAddressOption = match factoryAddressOption {
165163 case a: Address =>
166164 match getString(a, keyMainTreasuryAddress()) {
167165 case s: String =>
168166 addressFromString(s)
169167 case _: Unit =>
170168 unit
171169 case _ =>
172170 throw("Match error")
173171 }
174172 case _: Unit =>
175173 unit
176174 case _ =>
177175 throw("Match error")
178176 }
179177
180178 let featureTreasuryAddressOrFail = valueOrErrorMessage(featureTreasuryAddressOption, wrapErr("invalid feature treasury address"))
181179
182180 func onlyAddress (i,address) = if ((i.caller == address))
183181 then true
184182 else throwErr("permission denied")
185183
186184
187185 func onlyFactory (i) = onlyAddress(i, factoryAddressOrFail)
188186
189187
190188 func rewardForOption (rewards,target) = {
191189 let s = size(rewards)
192- let $t043104335 = rewards[0]
193- let a0 = $t043104335._1
194- let r0 = $t043104335._2
195- let $t043384363 = rewards[1]
196- let a1 = $t043384363._1
197- let r1 = $t043384363._2
198- let $t043664391 = rewards[2]
199- let a2 = $t043664391._1
200- let r2 = $t043664391._2
190+ let $t042874312 = rewards[0]
191+ let a0 = $t042874312._1
192+ let r0 = $t042874312._2
193+ let $t043154340 = rewards[1]
194+ let a1 = $t043154340._1
195+ let r1 = $t043154340._2
196+ let $t043434368 = rewards[2]
197+ let a2 = $t043434368._1
198+ let r2 = $t043434368._2
201199 if (if ((s > 0))
202200 then (a0 == target)
203201 else false)
204202 then r0
205203 else if (if ((s > 1))
206204 then (a1 == target)
207205 else false)
208206 then r1
209207 else if (if ((s > 2))
210208 then (a2 == target)
211209 else false)
212210 then r2
213211 else unit
214212 }
215213
216214
217215 @Callable(i)
218216 func claimLP (userAddressBytes) = {
219217 let checkCaller = onlyFactory(i)
220218 if ((checkCaller == checkCaller))
221219 then {
222220 let userAddress = Address(userAddressBytes)
223221 let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(userAddress)), 0)
224222 let claimed = valueOrElse(getInteger(factoryAddressOrFail, keyClaimed(userAddress)), 0)
225223 let factoryActions = if ((available > 0))
226224 then [invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, available, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(userAddress), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimed(userAddress), (claimed + available)], nil)]
227225 else throwErr("nothing to claim")
228226 $Tuple2(nil, factoryActions)
229227 }
230228 else throw("Strict value is not equal to itself.")
231229 }
232230
233231
234232
235233 @Callable(i)
236234 func finalize (userAddressBytes,newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = {
237235 let checkCaller = onlyFactory(i)
238236 if ((checkCaller == checkCaller))
239237 then {
240238 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
241239 let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
242240 let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
243241 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
244242 let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
245243 let periodEndHeight = ((currentStartHeight + periodLength) - 1)
246244 let checks = [if ((i.originCaller == featureTreasuryAddressOrFail))
247245 then true
248246 else throwErr("permission denied"), if ((nextBlockToProcess > periodEndHeight))
249247 then true
250248 else throwErr("unprocessed blocks"), if ((newTreasuryVolumeInWaves >= 0))
251249 then true
252250 else throwErr("invalid new treasury volume"), if ((pwrManagersBonusInWaves >= 0))
253251 then true
254252 else throwErr("invalid PWR managers bonus"), if (if ((treasuryVolumeDiffAllocationCoef >= -(SCALE8)))
255253 then (SCALE8 >= treasuryVolumeDiffAllocationCoef)
256254 else false)
257255 then true
258256 else throwErr("invalid treasury volume diff allocation coefficient")]
259257 if ((checks == checks))
260258 then {
261259 let donatedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyDonated(unit)), 0)
262260 let investedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
263261 let currentTreasuryVolumeInWaves = (donatedWavesAmount + investedWavesAmount)
264262 let profitRaw = (newTreasuryVolumeInWaves - currentTreasuryVolumeInWaves)
265263 let pwrManagersBonusAmount = if (if ((profitRaw > 0))
266264 then (profitRaw >= pwrManagersBonusInWaves)
267265 else false)
268266 then pwrManagersBonusInWaves
269267 else 0
270268 let profit = (profitRaw - pwrManagersBonusAmount)
271269 let donationPart = if ((currentTreasuryVolumeInWaves > 0))
272270 then fraction(donatedWavesAmount, SCALE8, currentTreasuryVolumeInWaves)
273271 else 0
274272 let donationProfitPartRaw = fraction(profit, donationPart, SCALE8)
275273 let investmentProfitPartRaw = (profit - donationProfitPartRaw)
276274 let treasuryVolumeDiffAllocationCoefAbs = abs(treasuryVolumeDiffAllocationCoef)
277275 let amountToDonation = fraction(investmentProfitPartRaw, if ((0 > treasuryVolumeDiffAllocationCoef))
278276 then treasuryVolumeDiffAllocationCoefAbs
279277 else 0, SCALE8)
280278 let amountToInvestment = fraction(donationProfitPartRaw, if ((treasuryVolumeDiffAllocationCoef > 0))
281279 then treasuryVolumeDiffAllocationCoefAbs
282280 else 0, SCALE8)
283281 let donationProfitPart = ((donationProfitPartRaw - amountToInvestment) + amountToDonation)
284282 let investmentProfitPart = ((investmentProfitPartRaw - amountToDonation) + amountToInvestment)
285283 let investedWavesAmountNew = (investedWavesAmount + investmentProfitPart)
286284 let newPeriod = (currentPeriodOrFail + 1)
287285 let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity
288286 let newPrice = fraction(investedWavesAmountNew, SCALE8, lpAssetQuantity)
289287 let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
290288 let paymentAmountMin = max([0, fraction(lpAssetAmountToBurn, newPrice, SCALE8)])
291289 let paymentOption = if ((size(i.payments) > 0))
292290 then i.payments[0]
293291 else unit
294292 let paymentAmount = value(paymentOption).amount
295293 let paymentAssetId = value(paymentOption).assetId
296294 let checkPayment = if (if ((paymentAmountMin == 0))
297295 then true
298296 else if (if ((paymentOption != unit))
299297 then (paymentAssetId == unit)
300298 else false)
301299 then (paymentAmount >= paymentAmountMin)
302300 else false)
303301 then true
304302 else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin)))
305303 if ((checkPayment == checkPayment))
306304 then {
307305 let actions = if ((paymentOption != unit))
308306 then [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
309307 else nil
310308 let factoryActions = [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)]
311309 $Tuple2(actions, factoryActions)
312310 }
313311 else throw("Strict value is not equal to itself.")
314312 }
315313 else throw("Strict value is not equal to itself.")
316314 }
317315 else throw("Strict value is not equal to itself.")
318316 }
319317
320318
321319
322320 @Callable(i)
323321 func invest (userAddressBytes) = {
324322 let checkCaller = onlyFactory(i)
325323 if ((checkCaller == checkCaller))
326324 then {
327325 let userAddress = Address(userAddressBytes)
328326 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
329327 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
330328 let payment = if ((size(i.payments) == 1))
331329 then i.payments[0]
332330 else throwErr("invalid payments")
333- let $t01066110838 = if (if ((payment.assetId == unit))
331+ let $t01063810815 = if (if ((payment.assetId == unit))
334332 then (payment.amount > 0)
335333 else false)
336334 then $Tuple2(payment.amount, payment.assetId)
337335 else throwErr("invalid payment amount")
338- let paymentAmount = $t01066110838._1
339- let paymentAssetId = $t01066110838._2
336+ let paymentAmount = $t01063810815._1
337+ let paymentAssetId = $t01063810815._2
340338 let lpAssetAmount = if ((currentPriceOrFail > 0))
341339 then fraction(paymentAmount, SCALE8, currentPriceOrFail)
342340 else 0
343341 let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0)
344342 let actions = [ScriptTransfer(featureTreasuryAddressOrFail, paymentAmount, paymentAssetId)]
345343 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + paymentAmount)], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
346344 $Tuple2(actions, factoryActions)
347345 }
348346 else throw("Strict value is not equal to itself.")
349347 }
350348
351349
352350
353351 @Callable(i)
354352 func withdraw (userAddressBytes) = {
355353 let checkCaller = onlyFactory(i)
356354 if ((checkCaller == checkCaller))
357355 then {
358356 let userAddress = Address(userAddressBytes)
359357 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
360358 let payment = if ((size(i.payments) == 1))
361359 then i.payments[0]
362360 else throwErr(wrapErr("invalid payments"))
363361 let paymentAssetId = if ((payment.assetId == lpAssetIdOrFail))
364362 then lpAssetIdOrFail
365363 else throwErr("invalid payment asset")
366364 let paymentAmount = if ((payment.amount > 0))
367365 then payment.amount
368366 else throwErr("invalid payment amount")
369367 let withdrawal = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0)
370368 let actions = [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)]
371369 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), (withdrawal + paymentAmount)], nil), invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, i.transactionId), valueWithdrawalRequest(PENDING, paymentAmount, (currentPeriodOrFail + 1), unit)], nil)]
372370 if ((factoryActions == factoryActions))
373371 then $Tuple2(actions, factoryActions)
374372 else throw("Strict value is not equal to itself.")
375373 }
376374 else throw("Strict value is not equal to itself.")
377375 }
378376
379377
380378
381379 @Callable(i)
382380 func cancelWithdraw (userAddressBytes,txId) = {
383381 let checkCaller = onlyFactory(i)
384382 if ((checkCaller == checkCaller))
385383 then {
386384 let userAddress = Address(userAddressBytes)
387385 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
388386 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
389- let $t01324813361 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
390- let status = $t01324813361._1
391- let lpAssetAmount = $t01324813361._2
392- let targetPeriod = $t01324813361._3
393- let claimTxId = $t01324813361._4
387+ let $t01322513338 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
388+ let status = $t01322513338._1
389+ let lpAssetAmount = $t01322513338._2
390+ let targetPeriod = $t01322513338._3
391+ let claimTxId = $t01322513338._4
394392 let checks = [if ((status == PENDING))
395393 then true
396394 else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail))
397395 then true
398396 else throwErr("invalid withdrawal request period")]
399397 if ((checks == checks))
400398 then {
401399 let withdrawal = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyWithdrawal()), wrapErr("invalid total withdrawal amount"))
402400 let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), if ((withdrawal >= lpAssetAmount))
403401 then (withdrawal - lpAssetAmount)
404402 else throwErr("invalid withdrawal amount")], nil), invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)]
405403 if ((factoryActions == factoryActions))
406404 then $Tuple2(nil, factoryActions)
407405 else throw("Strict value is not equal to itself.")
408406 }
409407 else throw("Strict value is not equal to itself.")
410408 }
411409 else throw("Strict value is not equal to itself.")
412410 }
413411
414412
415413
416414 @Callable(i)
417415 func claimWaves (userAddressBytes,txId) = {
418416 let checkCaller = onlyFactory(i)
419417 if ((checkCaller == checkCaller))
420418 then {
421419 let userAddress = Address(userAddressBytes)
422420 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
423421 let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request"))
424- let $t01469314806 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
425- let status = $t01469314806._1
426- let lpAssetAmount = $t01469314806._2
427- let targetPeriod = $t01469314806._3
428- let claimTxId = $t01469314806._4
422+ let $t01467014783 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption)
423+ let status = $t01467014783._1
424+ let lpAssetAmount = $t01467014783._2
425+ let targetPeriod = $t01467014783._3
426+ let claimTxId = $t01467014783._4
429427 if ((status == FINISHED))
430428 then throwErr("invalid withdrawal request status")
431429 else if ((targetPeriod > currentPeriodOrFail))
432430 then throwErr("invalid withdrawal request period")
433431 else {
434432 let priceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(targetPeriod)), wrapErr("invalid price"))
435433 let amount = if ((priceOrFail > 0))
436434 then fraction(lpAssetAmount, priceOrFail, SCALE8)
437435 else 0
438- 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)]
436+ let factoryActions = [invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, txId), valueWithdrawalRequest(FINISHED, lpAssetAmount, targetPeriod, i.transactionId)], nil), invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, amount], nil)]
439437 $Tuple2(nil, factoryActions)
440438 }
441439 }
442440 else throw("Strict value is not equal to itself.")
443441 }
444442
445443
446444
447445 @Callable(i)
448446 func processBlocks (userAddressBytes) = {
449447 let checkCaller = onlyFactory(i)
450448 if ((checkCaller == checkCaller))
451449 then {
452450 let userAddress = Address(userAddressBytes)
453451 let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period"))
454452 let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length"))
455453 let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height"))
456454 let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price"))
457455 let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process"))
458456 let periodEndHeight = ((currentStartHeight + periodLength) - 1)
459457 let blocksProcessingBatchSizeMax = 40
460458 let blocksProcessingBatchSize = if (if (if ((height >= nextBlockToProcess))
461459 then if ((nextBlockToProcess >= currentStartHeight))
462460 then true
463461 else (currentPeriodOrFail == 0)
464462 else false)
465463 then (periodEndHeight >= nextBlockToProcess)
466464 else false)
467465 then min([((periodEndHeight - nextBlockToProcess) + 1), blocksProcessingBatchSizeMax])
468466 else throwErr(wrapErr("invalid target block"))
469467 let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward"))
470468 let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSize)
471469 let blockProcessingRewardByGeneratorRemainder = (blockProcessingReward - (blockProcessingRewardByGenerator * blocksProcessingBatchSize))
472470 func map (acc,inc) = if ((inc >= blocksProcessingBatchSize))
473471 then acc
474472 else {
475473 let targetBlockHeight = (nextBlockToProcess + inc)
476474 let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info"))
477475 let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, proxyTreasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight))))
478476 let generator = targetBlockInfo.generator
479477 let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(generator)), 0)
480478 let callerReward = if ((inc == (blocksProcessingBatchSize - 1)))
481479 then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder)
482480 else blockProcessingRewardByGenerator
483481 let lpAssetAmount = if ((currentPriceOrFail > 0))
484482 then fraction((treasuryRewardOrFail - callerReward), SCALE8, currentPriceOrFail)
485483 else 0
486484 let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)]
487485 if ((factoryActionsSingle == factoryActionsSingle))
488486 then {
489- let $t01910619139 = acc
490- let lpAssetAcc = $t01910619139._1
491- let rewardAcc = $t01910619139._2
487+ let $t01901919052 = acc
488+ let lpAssetAcc = $t01901919052._1
489+ let rewardAcc = $t01901919052._2
492490 $Tuple2((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail))
493491 }
494492 else throw("Strict value is not equal to itself.")
495493 }
496494
497495 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]
498- let $t01940619482 = {
496+ let $t01931919395 = {
499497 let $l = list
500498 let $s = size($l)
501499 let $acc0 = $Tuple2(0, 0)
502500 func $f0_1 ($a,$i) = if (($i >= $s))
503501 then $a
504502 else map($a, $l[$i])
505503
506504 func $f0_2 ($a,$i) = if (($i >= $s))
507505 then $a
508506 else throw("List size exceeds 40")
509507
510508 $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)
511509 }
512- if (($t01940619482 == $t01940619482))
510+ if (($t01931919395 == $t01931919395))
513511 then {
514- let rewardAmountTotal = $t01940619482._2
515- let lpAssetAmountTotal = $t01940619482._1
512+ let rewardAmountTotal = $t01931919395._2
513+ let lpAssetAmountTotal = $t01931919395._1
516514 let rewardToMainTreasuryAmount = (rewardAmountTotal - blockProcessingReward)
517515 let actions = [invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [featureTreasuryAddressOrFail.bytes, rewardToMainTreasuryAmount], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [factoryAddressOrFail.bytes, blockProcessingReward], nil)]
518516 if ((actions == actions))
519517 then $Tuple2(nil, unit)
520518 else throw("Strict value is not equal to itself.")
521519 }
522520 else throw("Strict value is not equal to itself.")
523521 }
524522 else throw("Strict value is not equal to itself.")
525523 }
526524
527525
528526 @Verifier(tx)
529527 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
530528

github/deemru/w8io/026f985 
64.45 ms