tx · 2BKD6hYCQoca8zJa9hG3XpSTYCvUDbYtsubAg9ger5b3 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP: -0.01900000 Waves 2023.06.21 17:49 [2632548] smart account 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP > SELF 0.00000000 Waves
{ "type": 13, "id": "2BKD6hYCQoca8zJa9hG3XpSTYCvUDbYtsubAg9ger5b3", "fee": 1900000, "feeAssetId": null, "timestamp": 1687358942828, "version": 2, "chainId": 84, "sender": "3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP", "senderPublicKey": "AoKo4segKHU4DeJnxXQYJj2u7J6XJeux6r8KLW52cd2Q", "proofs": [ "4eJwyBwMgRyqmKpXMPLsZLEqagvrxU4C8oEBXhktFz4EDnq1HCio5pNdBQazBkkPk258PdtezvHWakkbBpjoGZ4f" ], "script": "base64:BwIrCAISAwoBAhIHCgUCAQEBARIDCgECEgMKAQISBAoCAgISBAoCAgISAwoBAicAA1NFUAICX18ADUNPTlRSQUNUX05BTUUCD2NhbGN1bGF0b3IucmlkZQAGU0NBTEU4AIDC1y8AB1BFTkRJTkcCB1BFTkRJTkcACEZJTklTSEVEAghGSU5JU0hFRAAFV0FWRVMCBVdBVkVTAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUNQ09OVFJBQ1RfTkFNRQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9hc3NldElkVG9TdHJpbmcBB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQBYgUHJG1hdGNoMAkA2AQBBQFiAwkAAQIFByRtYXRjaDACBFVuaXQFBVdBVkVTCQACAQILTWF0Y2ggZXJyb3IBA2FicwEBbgMJAGYCAAAFAW4JAQEtAQUBbgUBbgERa2V5RmFjdG9yeUFkZHJlc3MACQC5CQIJAMwIAgICJXMJAMwIAgIHZmFjdG9yeQUDbmlsBQNTRVAB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U3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleToM4rk=", "height": 2632548, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7L2X6cEFBPWHmdncQoHzyT1DLNWebqc9YoU9TCWiuwVu Next: BrRNVGS6tk4V9Ri3MbwPXjBDSpewSt9dohMQPrcWqqvq Diff:
Old | New | Differences | |
---|---|---|---|
294 | 294 | else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin))) | |
295 | 295 | if ((checkPaymentAmount == checkPaymentAmount)) | |
296 | 296 | then { | |
297 | - | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil)] | |
297 | + | 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)] | |
298 | 298 | $Tuple2(nil, factoryActions) | |
299 | 299 | } | |
300 | 300 | else throw("Strict value is not equal to itself.") | |
369 | 369 | let userAddress = Address(userAddressBytes) | |
370 | 370 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
371 | 371 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
372 | - | let $ | |
373 | - | let status = $ | |
374 | - | let lpAssetAmount = $ | |
375 | - | let targetPeriod = $ | |
376 | - | let claimTxId = $ | |
372 | + | let $t01283112944 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
373 | + | let status = $t01283112944._1 | |
374 | + | let lpAssetAmount = $t01283112944._2 | |
375 | + | let targetPeriod = $t01283112944._3 | |
376 | + | let claimTxId = $t01283112944._4 | |
377 | 377 | let checks = [if ((status == PENDING)) | |
378 | 378 | then true | |
379 | 379 | else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail)) | |
404 | 404 | let userAddress = Address(userAddressBytes) | |
405 | 405 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
406 | 406 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
407 | - | let $ | |
408 | - | let status = $ | |
409 | - | let lpAssetAmount = $ | |
410 | - | let targetPeriod = $ | |
411 | - | let claimTxId = $ | |
407 | + | let $t01427614389 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
408 | + | let status = $t01427614389._1 | |
409 | + | let lpAssetAmount = $t01427614389._2 | |
410 | + | let targetPeriod = $t01427614389._3 | |
411 | + | let claimTxId = $t01427614389._4 | |
412 | 412 | if ((status == FINISHED)) | |
413 | 413 | then throwErr("invalid withdrawal request status") | |
414 | 414 | else if ((targetPeriod > currentPeriodOrFail)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let CONTRACT_NAME = "calculator.ride" | |
7 | 7 | ||
8 | 8 | let SCALE8 = 100000000 | |
9 | 9 | ||
10 | 10 | let PENDING = "PENDING" | |
11 | 11 | ||
12 | 12 | let FINISHED = "FINISHED" | |
13 | 13 | ||
14 | 14 | let WAVES = "WAVES" | |
15 | 15 | ||
16 | 16 | func wrapErr (s) = ((CONTRACT_NAME + ": ") + s) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func throwErr (s) = throw(wrapErr(s)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func assetIdToString (assetId) = match assetId { | |
23 | 23 | case b: ByteVector => | |
24 | 24 | toBase58String(b) | |
25 | 25 | case _: Unit => | |
26 | 26 | WAVES | |
27 | 27 | case _ => | |
28 | 28 | throw("Match error") | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func abs (n) = if ((0 > n)) | |
33 | 33 | then -(n) | |
34 | 34 | else n | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func keyFactoryAddress () = makeString(["%s", "factory"], SEP) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func keyLpAssetId () = makeString(["%s", "lpAssetId"], SEP) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func keyXtnAssetId () = makeString(["%s", "xtnAssetId"], SEP) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func keyTreasuryAddress () = makeString(["%s", "treasury"], SEP) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func keyClaimed (userAddress) = makeString(["%s%s", "claimed", toString(userAddress)], SEP) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keyPriceForPeriod (period) = makeString(["%s%d", "price", toString(period)], SEP) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyStartHeight (period) = makeString(["%s%d", "startHeight", toString(period)], SEP) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyPeriodLength () = "%s__periodLength" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func keyBlockProcessingReward () = "%s__blockProcessingReward" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyNextBlockToProcess () = "%s__nextBlockToProcess" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyBlockProcessed (height) = makeString(["%s%d", "blockProcessed", toString(height)], SEP) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyWithdrawal () = "%s__withdrawal" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyWithdrawalRequest (userAddress,txId) = makeString(["%s%s%s", "withdrawal", toString(userAddress), toBase58String(txId)], SEP) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func valueWithdrawalRequest (status,lpAssetAmount,targetPeriod,claimTxId) = { | |
86 | 86 | let claimTxIdStr = match claimTxId { | |
87 | 87 | case b: ByteVector => | |
88 | 88 | toBase58String(b) | |
89 | 89 | case _: Unit => | |
90 | 90 | "SOON" | |
91 | 91 | case _ => | |
92 | 92 | throw("Match error") | |
93 | 93 | } | |
94 | 94 | makeString(["%s%d%d%s", status, toString(lpAssetAmount), toString(targetPeriod), claimTxIdStr], SEP) | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func parseWithdrawalRequestValueOrFail (s) = { | |
99 | 99 | let parts = split(s, SEP) | |
100 | 100 | if ((size(parts) == 5)) | |
101 | 101 | then { | |
102 | 102 | let status = parts[1] | |
103 | 103 | let lpAssetAmount = valueOrErrorMessage(parseInt(parts[2]), wrapErr("invalid lpAssetAmount")) | |
104 | 104 | let targetPeriod = valueOrErrorMessage(parseInt(parts[3]), wrapErr("invalid targetPeriod")) | |
105 | 105 | let claimTxId = parts[4] | |
106 | 106 | $Tuple4(status, lpAssetAmount, targetPeriod, claimTxId) | |
107 | 107 | } | |
108 | 108 | else throwErr("invalid withdrawal request value") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | let factoryAddressOption = match getString(this, keyFactoryAddress()) { | |
113 | 113 | case s: String => | |
114 | 114 | addressFromString(s) | |
115 | 115 | case _: Unit => | |
116 | 116 | unit | |
117 | 117 | case _ => | |
118 | 118 | throw("Match error") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | let factoryAddressOrFail = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address")) | |
122 | 122 | ||
123 | 123 | let lpAssetIdOption = match factoryAddressOption { | |
124 | 124 | case a: Address => | |
125 | 125 | match getString(a, keyLpAssetId()) { | |
126 | 126 | case s: String => | |
127 | 127 | fromBase58String(s) | |
128 | 128 | case _: Unit => | |
129 | 129 | unit | |
130 | 130 | case _ => | |
131 | 131 | throw("Match error") | |
132 | 132 | } | |
133 | 133 | case _: Unit => | |
134 | 134 | unit | |
135 | 135 | case _ => | |
136 | 136 | throw("Match error") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId")) | |
140 | 140 | ||
141 | 141 | let xtnAssetIdOption = match factoryAddressOption { | |
142 | 142 | case a: Address => | |
143 | 143 | match getString(a, keyXtnAssetId()) { | |
144 | 144 | case s: String => | |
145 | 145 | fromBase58String(s) | |
146 | 146 | case _: Unit => | |
147 | 147 | unit | |
148 | 148 | case _ => | |
149 | 149 | throw("Match error") | |
150 | 150 | } | |
151 | 151 | case _: Unit => | |
152 | 152 | unit | |
153 | 153 | case _ => | |
154 | 154 | throw("Match error") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | let xtnAssetIdOrFail = valueOrErrorMessage(xtnAssetIdOption, wrapErr("invalid xtnAssetId")) | |
158 | 158 | ||
159 | 159 | let treasuryAddressOption = match factoryAddressOption { | |
160 | 160 | case a: Address => | |
161 | 161 | match getString(a, keyTreasuryAddress()) { | |
162 | 162 | case s: String => | |
163 | 163 | addressFromString(s) | |
164 | 164 | case _: Unit => | |
165 | 165 | unit | |
166 | 166 | case _ => | |
167 | 167 | throw("Match error") | |
168 | 168 | } | |
169 | 169 | case _: Unit => | |
170 | 170 | unit | |
171 | 171 | case _ => | |
172 | 172 | throw("Match error") | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | let treasuryAddressOrFail = valueOrErrorMessage(treasuryAddressOption, wrapErr("invalid treasury address")) | |
176 | 176 | ||
177 | 177 | func onlyAddress (i,address) = if ((i.caller == address)) | |
178 | 178 | then true | |
179 | 179 | else throwErr("permission denied") | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func onlyFactory (i) = onlyAddress(i, factoryAddressOrFail) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func rewardForOption (rewards,target) = { | |
186 | 186 | let s = size(rewards) | |
187 | 187 | let $t040734098 = rewards[0] | |
188 | 188 | let a0 = $t040734098._1 | |
189 | 189 | let r0 = $t040734098._2 | |
190 | 190 | let $t041014126 = rewards[1] | |
191 | 191 | let a1 = $t041014126._1 | |
192 | 192 | let r1 = $t041014126._2 | |
193 | 193 | let $t041294154 = rewards[2] | |
194 | 194 | let a2 = $t041294154._1 | |
195 | 195 | let r2 = $t041294154._2 | |
196 | 196 | if (if ((s > 0)) | |
197 | 197 | then (a0 == target) | |
198 | 198 | else false) | |
199 | 199 | then r0 | |
200 | 200 | else if (if ((s > 1)) | |
201 | 201 | then (a1 == target) | |
202 | 202 | else false) | |
203 | 203 | then r1 | |
204 | 204 | else if (if ((s > 2)) | |
205 | 205 | then (a2 == target) | |
206 | 206 | else false) | |
207 | 207 | then r2 | |
208 | 208 | else unit | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(i) | |
213 | 213 | func claimLP (userAddressBytes) = { | |
214 | 214 | let checkCaller = onlyFactory(i) | |
215 | 215 | if ((checkCaller == checkCaller)) | |
216 | 216 | then { | |
217 | 217 | let userAddress = Address(userAddressBytes) | |
218 | 218 | let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(userAddress)), 0) | |
219 | 219 | let claimed = valueOrElse(getInteger(factoryAddressOrFail, keyClaimed(userAddress)), 0) | |
220 | 220 | let factoryActions = if ((available > 0)) | |
221 | 221 | then [invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, available, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(userAddress), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimed(userAddress), (claimed + available)], nil)] | |
222 | 222 | else throwErr("nothing to claim") | |
223 | 223 | $Tuple2(nil, factoryActions) | |
224 | 224 | } | |
225 | 225 | else throw("Strict value is not equal to itself.") | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(i) | |
231 | 231 | func finalize (userAddressBytes,newTreasuryVolumeInWaves,xtnPrice,pwrManagersBonus,treasuryVolumeDiffAllocationCoef) = { | |
232 | 232 | let checkCaller = onlyFactory(i) | |
233 | 233 | if ((checkCaller == checkCaller)) | |
234 | 234 | then { | |
235 | 235 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
236 | 236 | let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length")) | |
237 | 237 | let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height")) | |
238 | 238 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
239 | 239 | let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process")) | |
240 | 240 | let periodEndHeight = ((currentStartHeight + periodLength) - 1) | |
241 | 241 | let checks = [if ((nextBlockToProcess > periodEndHeight)) | |
242 | 242 | then true | |
243 | 243 | else throwErr("unprocessed blocks"), if ((newTreasuryVolumeInWaves >= 0)) | |
244 | 244 | then true | |
245 | 245 | else throwErr("invalid new treasury volume"), if ((xtnPrice >= 0)) | |
246 | 246 | then true | |
247 | 247 | else throwErr("invalid XTN price"), if (if ((pwrManagersBonus >= 0)) | |
248 | 248 | then (SCALE8 >= pwrManagersBonus) | |
249 | 249 | else false) | |
250 | 250 | then true | |
251 | 251 | else throwErr("invalid PWR managers bonus"), if (if ((treasuryVolumeDiffAllocationCoef >= -(SCALE8))) | |
252 | 252 | then (SCALE8 >= treasuryVolumeDiffAllocationCoef) | |
253 | 253 | else false) | |
254 | 254 | then true | |
255 | 255 | else throwErr("invalid treasury volume diff allocation coefficient")] | |
256 | 256 | if ((checks == checks)) | |
257 | 257 | then { | |
258 | 258 | let investedXtnAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(xtnAssetIdOrFail)), 0) | |
259 | 259 | let investedWavesAmount = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0) | |
260 | 260 | let investedXtnAmountInWaves = fraction(investedXtnAmount, xtnPrice, SCALE8) | |
261 | 261 | let currentTreasuryVolumeInWaves = (investedXtnAmountInWaves + investedWavesAmount) | |
262 | 262 | let profitRaw = (newTreasuryVolumeInWaves - currentTreasuryVolumeInWaves) | |
263 | 263 | let pwrManagersBonusAmount = if ((profitRaw > 0)) | |
264 | 264 | then fraction(profitRaw, pwrManagersBonus, SCALE8) | |
265 | 265 | else 0 | |
266 | 266 | let profit = (profitRaw - pwrManagersBonusAmount) | |
267 | 267 | let donationPart = if ((currentTreasuryVolumeInWaves > 0)) | |
268 | 268 | then fraction(investedXtnAmountInWaves, SCALE8, currentTreasuryVolumeInWaves) | |
269 | 269 | else 0 | |
270 | 270 | let donationProfitPartRaw = fraction(profit, donationPart, SCALE8) | |
271 | 271 | let investmentProfitPartRaw = (profit - donationProfitPartRaw) | |
272 | 272 | let treasuryVolumeDiffAllocationCoefAbs = abs(treasuryVolumeDiffAllocationCoef) | |
273 | 273 | let amountToDonation = fraction(investmentProfitPartRaw, if ((0 > treasuryVolumeDiffAllocationCoef)) | |
274 | 274 | then treasuryVolumeDiffAllocationCoefAbs | |
275 | 275 | else 0, SCALE8) | |
276 | 276 | let amountToInvestment = fraction(donationProfitPartRaw, if ((treasuryVolumeDiffAllocationCoef > 0)) | |
277 | 277 | then treasuryVolumeDiffAllocationCoefAbs | |
278 | 278 | else 0, SCALE8) | |
279 | 279 | let donationProfitPart = ((donationProfitPartRaw - amountToInvestment) + amountToDonation) | |
280 | 280 | let investmentProfitPart = ((investmentProfitPartRaw - amountToDonation) + amountToInvestment) | |
281 | 281 | let investedWavesAmountNew = (investedWavesAmount + investmentProfitPart) | |
282 | 282 | let investedXtnAmountNew = fraction((investedXtnAmountInWaves + donationProfitPart), SCALE8, xtnPrice) | |
283 | 283 | let newPeriod = (currentPeriodOrFail + 1) | |
284 | 284 | let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity | |
285 | 285 | let newPrice = fraction(investedWavesAmountNew, SCALE8, lpAssetQuantity) | |
286 | 286 | let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0) | |
287 | 287 | let paymentAmountMin = fraction(lpAssetAmountToBurn, newPrice, SCALE8) | |
288 | 288 | let checkPaymentAmount = if (if (if ((size(i.payments) == 1)) | |
289 | 289 | then (i.payments[0].assetId == unit) | |
290 | 290 | else false) | |
291 | 291 | then (i.payments[0].amount >= paymentAmountMin) | |
292 | 292 | else false) | |
293 | 293 | then true | |
294 | 294 | else throwErr(("invalid payments, payment amount min: " + toString(paymentAmountMin))) | |
295 | 295 | if ((checkPaymentAmount == checkPaymentAmount)) | |
296 | 296 | then { | |
297 | - | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil)] | |
297 | + | 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)] | |
298 | 298 | $Tuple2(nil, factoryActions) | |
299 | 299 | } | |
300 | 300 | else throw("Strict value is not equal to itself.") | |
301 | 301 | } | |
302 | 302 | else throw("Strict value is not equal to itself.") | |
303 | 303 | } | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(i) | |
310 | 310 | func invest (userAddressBytes) = { | |
311 | 311 | let checkCaller = onlyFactory(i) | |
312 | 312 | if ((checkCaller == checkCaller)) | |
313 | 313 | then { | |
314 | 314 | let userAddress = Address(userAddressBytes) | |
315 | 315 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
316 | 316 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
317 | 317 | let payment = if ((size(i.payments) == 1)) | |
318 | 318 | then i.payments[0] | |
319 | 319 | else throwErr("invalid payments") | |
320 | 320 | let paymentAmount = if (if ((payment.assetId == unit)) | |
321 | 321 | then (payment.amount > 0) | |
322 | 322 | else false) | |
323 | 323 | then payment.amount | |
324 | 324 | else throwErr("invalid payment amount") | |
325 | 325 | let lpAssetAmount = if ((currentPriceOrFail > 0)) | |
326 | 326 | then fraction(paymentAmount, SCALE8, currentPriceOrFail) | |
327 | 327 | else 0 | |
328 | 328 | let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0) | |
329 | 329 | 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)])] | |
330 | 330 | $Tuple2(nil, factoryActions) | |
331 | 331 | } | |
332 | 332 | else throw("Strict value is not equal to itself.") | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | ||
337 | 337 | @Callable(i) | |
338 | 338 | func withdraw (userAddressBytes) = { | |
339 | 339 | let checkCaller = onlyFactory(i) | |
340 | 340 | if ((checkCaller == checkCaller)) | |
341 | 341 | then { | |
342 | 342 | let userAddress = Address(userAddressBytes) | |
343 | 343 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
344 | 344 | let payment = if ((size(i.payments) == 1)) | |
345 | 345 | then i.payments[0] | |
346 | 346 | else throwErr(wrapErr("invalid payments")) | |
347 | 347 | let paymentAssetId = if ((payment.assetId == lpAssetIdOrFail)) | |
348 | 348 | then lpAssetIdOrFail | |
349 | 349 | else throwErr("invalid payment asset") | |
350 | 350 | let paymentAmount = if ((payment.amount > 0)) | |
351 | 351 | then payment.amount | |
352 | 352 | else throwErr("invalid payment amount") | |
353 | 353 | let withdrawal = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0) | |
354 | 354 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), (withdrawal + paymentAmount)], nil), invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, i.transactionId), valueWithdrawalRequest(PENDING, paymentAmount, (currentPeriodOrFail + 1), unit)], nil)] | |
355 | 355 | if ((factoryActions == factoryActions)) | |
356 | 356 | then $Tuple2([ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)], factoryActions) | |
357 | 357 | else throw("Strict value is not equal to itself.") | |
358 | 358 | } | |
359 | 359 | else throw("Strict value is not equal to itself.") | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Callable(i) | |
365 | 365 | func cancelWithdraw (userAddressBytes,txId) = { | |
366 | 366 | let checkCaller = onlyFactory(i) | |
367 | 367 | if ((checkCaller == checkCaller)) | |
368 | 368 | then { | |
369 | 369 | let userAddress = Address(userAddressBytes) | |
370 | 370 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
371 | 371 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
372 | - | let $ | |
373 | - | let status = $ | |
374 | - | let lpAssetAmount = $ | |
375 | - | let targetPeriod = $ | |
376 | - | let claimTxId = $ | |
372 | + | let $t01283112944 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
373 | + | let status = $t01283112944._1 | |
374 | + | let lpAssetAmount = $t01283112944._2 | |
375 | + | let targetPeriod = $t01283112944._3 | |
376 | + | let claimTxId = $t01283112944._4 | |
377 | 377 | let checks = [if ((status == PENDING)) | |
378 | 378 | then true | |
379 | 379 | else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail)) | |
380 | 380 | then true | |
381 | 381 | else throwErr("invalid withdrawal request period")] | |
382 | 382 | if ((checks == checks)) | |
383 | 383 | then { | |
384 | 384 | let withdrawal = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyWithdrawal()), wrapErr("invalid total withdrawal amount")) | |
385 | 385 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), if ((withdrawal >= lpAssetAmount)) | |
386 | 386 | then (withdrawal - lpAssetAmount) | |
387 | 387 | else throwErr("invalid withdrawal amount")], nil), invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)] | |
388 | 388 | if ((factoryActions == factoryActions)) | |
389 | 389 | then $Tuple2(nil, factoryActions) | |
390 | 390 | else throw("Strict value is not equal to itself.") | |
391 | 391 | } | |
392 | 392 | else throw("Strict value is not equal to itself.") | |
393 | 393 | } | |
394 | 394 | else throw("Strict value is not equal to itself.") | |
395 | 395 | } | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | ||
399 | 399 | @Callable(i) | |
400 | 400 | func claimWaves (userAddressBytes,txId) = { | |
401 | 401 | let checkCaller = onlyFactory(i) | |
402 | 402 | if ((checkCaller == checkCaller)) | |
403 | 403 | then { | |
404 | 404 | let userAddress = Address(userAddressBytes) | |
405 | 405 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
406 | 406 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
407 | - | let $ | |
408 | - | let status = $ | |
409 | - | let lpAssetAmount = $ | |
410 | - | let targetPeriod = $ | |
411 | - | let claimTxId = $ | |
407 | + | let $t01427614389 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
408 | + | let status = $t01427614389._1 | |
409 | + | let lpAssetAmount = $t01427614389._2 | |
410 | + | let targetPeriod = $t01427614389._3 | |
411 | + | let claimTxId = $t01427614389._4 | |
412 | 412 | if ((status == FINISHED)) | |
413 | 413 | then throwErr("invalid withdrawal request status") | |
414 | 414 | else if ((targetPeriod > currentPeriodOrFail)) | |
415 | 415 | then throwErr("invalid withdrawal request period") | |
416 | 416 | else { | |
417 | 417 | let priceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(targetPeriod)), wrapErr("invalid price")) | |
418 | 418 | let amount = if ((priceOrFail > 0)) | |
419 | 419 | then fraction(lpAssetAmount, priceOrFail, SCALE8) | |
420 | 420 | else 0 | |
421 | 421 | 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)] | |
422 | 422 | $Tuple2(nil, factoryActions) | |
423 | 423 | } | |
424 | 424 | } | |
425 | 425 | else throw("Strict value is not equal to itself.") | |
426 | 426 | } | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | ||
430 | 430 | @Callable(i) | |
431 | 431 | func processBlocks (userAddressBytes) = { | |
432 | 432 | let checkCaller = onlyFactory(i) | |
433 | 433 | if ((checkCaller == checkCaller)) | |
434 | 434 | then { | |
435 | 435 | let userAddress = Address(userAddressBytes) | |
436 | 436 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
437 | 437 | let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length")) | |
438 | 438 | let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height")) | |
439 | 439 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
440 | 440 | let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process")) | |
441 | 441 | let periodEndHeight = ((currentStartHeight + periodLength) - 1) | |
442 | 442 | let blocksProcessingBatchSizeMax = 40 | |
443 | 443 | let blocksProcessingBatchSize = if (if (if ((height >= nextBlockToProcess)) | |
444 | 444 | then if ((nextBlockToProcess >= currentStartHeight)) | |
445 | 445 | then true | |
446 | 446 | else (currentPeriodOrFail == 0) | |
447 | 447 | else false) | |
448 | 448 | then (periodEndHeight >= nextBlockToProcess) | |
449 | 449 | else false) | |
450 | 450 | then min([((periodEndHeight - nextBlockToProcess) + 1), blocksProcessingBatchSizeMax]) | |
451 | 451 | else throwErr(wrapErr("invalid target block")) | |
452 | 452 | let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward")) | |
453 | 453 | let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSize) | |
454 | 454 | let blockProcessingRewardByGeneratorRemainder = (blockProcessingReward - (blockProcessingRewardByGenerator * blocksProcessingBatchSize)) | |
455 | 455 | func map (acc,inc) = if ((inc >= blocksProcessingBatchSize)) | |
456 | 456 | then acc | |
457 | 457 | else { | |
458 | 458 | let targetBlockHeight = (nextBlockToProcess + inc) | |
459 | 459 | let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info")) | |
460 | 460 | let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, treasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight)))) | |
461 | 461 | let generator = targetBlockInfo.generator | |
462 | 462 | let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(generator)), 0) | |
463 | 463 | let callerReward = if ((inc == (blocksProcessingBatchSize - 1))) | |
464 | 464 | then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder) | |
465 | 465 | else blockProcessingRewardByGenerator | |
466 | 466 | let lpAssetAmount = if ((currentPriceOrFail > 0)) | |
467 | 467 | then fraction((treasuryRewardOrFail - callerReward), SCALE8, currentPriceOrFail) | |
468 | 468 | else 0 | |
469 | 469 | 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)] | |
470 | 470 | if ((factoryActionsSingle == factoryActionsSingle)) | |
471 | 471 | then (acc + lpAssetAmount) | |
472 | 472 | else throw("Strict value is not equal to itself.") | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | 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] | |
476 | 476 | let lpAssetAmountTotal = { | |
477 | 477 | let $l = list | |
478 | 478 | let $s = size($l) | |
479 | 479 | let $acc0 = 0 | |
480 | 480 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
481 | 481 | then $a | |
482 | 482 | else map($a, $l[$i]) | |
483 | 483 | ||
484 | 484 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
485 | 485 | then $a | |
486 | 486 | else throw("List size exceeds 40") | |
487 | 487 | ||
488 | 488 | $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) | |
489 | 489 | } | |
490 | 490 | if ((lpAssetAmountTotal == lpAssetAmountTotal)) | |
491 | 491 | then { | |
492 | 492 | let actions = [invoke(factoryAddressOrFail, "transferWaves", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil)] | |
493 | 493 | if ((actions == actions)) | |
494 | 494 | then $Tuple2(nil, unit) | |
495 | 495 | else throw("Strict value is not equal to itself.") | |
496 | 496 | } | |
497 | 497 | else throw("Strict value is not equal to itself.") | |
498 | 498 | } | |
499 | 499 | else throw("Strict value is not equal to itself.") | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | @Verifier(tx) | |
504 | 504 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
505 | 505 |
github/deemru/w8io/026f985 61.88 ms ◑