tx · DkzqNhTbpDMrYdbm57RpNJ5NLFCRQrNY5MN7g8ax7WLw 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH: -0.02400000 Waves 2023.03.15 08:41 [2490738] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves
{ "type": 13, "id": "DkzqNhTbpDMrYdbm57RpNJ5NLFCRQrNY5MN7g8ax7WLw", "fee": 2400000, "feeAssetId": null, "timestamp": 1678858959224, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "3krg5VJY2nCStVBCR7FrRnCCaujoF6cF2b9zjkiMMeFUoAPQToxud6y9v2Yq9RYp9a4ngxmY8bZy8bMh84tLJuQF" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRAADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX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gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgCbAr5Q", "height": 2490738, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9FgvDkWtdt9z2veFvGoWXgpuKtJ3bWcKJXwia7hiNWYz Next: 3p5haAUoY5cChzzaJdY7LLESPq1c9A9YFY8j367nVTE5 Diff:
Old | New | Differences | |
---|---|---|---|
277 | 277 | let newCirculationIncrIndex = if ((unitIncrement > currentCircIndex)) | |
278 | 278 | then (unitIncrement + currentCircIndex) | |
279 | 279 | else currentCircIndex | |
280 | - | let currentMr = _throwOrReturnI(_Mr, "miniting rate not previously defined") | |
280 | + | let currentMr = match _getRegistryEntryValue(_Mr) { | |
281 | + | case t: Int => | |
282 | + | t | |
283 | + | case _ => | |
284 | + | throw("failed to get miniting rate") | |
285 | + | } | |
281 | 286 | if ((newCirculationIncrIndex == currentCircIndex)) | |
282 | 287 | then currentMr | |
283 | 288 | else { | |
284 | - | let newreductionFactor = (_throwOrReturnI(_percentageReductionFactor, "reduction factor not previously defined") + 10) | |
289 | + | let newreductionFactor = match _getRegistryEntryValue(_percentageReductionFactor) { | |
290 | + | case t: Int => | |
291 | + | t | |
292 | + | case _ => | |
293 | + | throw("failed to get percentage reduction factor") | |
294 | + | } | |
285 | 295 | let newCurrentMr = (currentMr - fraction(currentMr, newreductionFactor, 100)) | |
286 | 296 | let store1 = _writeInt(_Mr, newCurrentMr) | |
287 | 297 | if ((store1 == store1)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "_" | |
5 | 5 | ||
6 | 6 | let _minLockperiod = 1 | |
7 | 7 | ||
8 | 8 | let _unitDecimals = 100000000 | |
9 | 9 | ||
10 | 10 | let _minLockAmount = (1 * _unitDecimals) | |
11 | 11 | ||
12 | 12 | let _maxLockAmount = (1000 * _unitDecimals) | |
13 | 13 | ||
14 | 14 | let _Dt = 86400000 | |
15 | 15 | ||
16 | 16 | func _Ppy (lockPeriod) = fraction(_unitDecimals, 365, lockPeriod) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let _incrementRef = (1000000 * _unitDecimals) | |
20 | 20 | ||
21 | 21 | let _percentageFee = fraction(_unitDecimals, 10, 100) | |
22 | 22 | ||
23 | 23 | let _percentageReductionFactor = "Current_PercentageReduction_Factor_For_Mr" | |
24 | 24 | ||
25 | 25 | let _Mr = "Minting_Rate" | |
26 | 26 | ||
27 | 27 | let _stawAssetId = "Staw_AssetId" | |
28 | 28 | ||
29 | 29 | let _manager = "manager" | |
30 | 30 | ||
31 | 31 | let _Dfx = "Dfx" | |
32 | 32 | ||
33 | 33 | let _circulationIncrIndex = "CirculationIncrementIndex" | |
34 | 34 | ||
35 | 35 | let _lesseeAddress = "LeaseNode" | |
36 | 36 | ||
37 | 37 | let _userEmissionAmountClaimed = "EmissionAmountClaimed" | |
38 | 38 | ||
39 | 39 | let _userCanClaimEmissionAmount = "CanClaimEmissionAmount" | |
40 | 40 | ||
41 | 41 | let _userAddress = "WalletAddress" | |
42 | 42 | ||
43 | 43 | let _userLocalIndexCount = "TotalEntryIndexCount" | |
44 | 44 | ||
45 | 45 | let _userTotalLocked = "TotalLocked" | |
46 | 46 | ||
47 | 47 | let _lockDuration = "LockDuration" | |
48 | 48 | ||
49 | 49 | let _lockIndex = "GlobalLockIndex" | |
50 | 50 | ||
51 | 51 | let _lockId = "LockIdentifier" | |
52 | 52 | ||
53 | 53 | let _wavesAmount = "AmountInWaves" | |
54 | 54 | ||
55 | 55 | let _stawAmount = "AmountInStaw" | |
56 | 56 | ||
57 | 57 | let _stawLPAmount = "AmountInStawLP" | |
58 | 58 | ||
59 | 59 | let _txId = "TXID" | |
60 | 60 | ||
61 | 61 | let _lockAtHeight = "LockAtHeight" | |
62 | 62 | ||
63 | 63 | let _lockPeriodInMiliSec = "LocKPeriodInMilliSec" | |
64 | 64 | ||
65 | 65 | let _totalWavesClaimed = "TotalWavesClaimed" | |
66 | 66 | ||
67 | 67 | let _userLeaseState = "LeaseState" | |
68 | 68 | ||
69 | 69 | let _totalStaw = "TotalStawMinted" | |
70 | 70 | ||
71 | 71 | let _totalWavesRef = "TotalWavesLocked" | |
72 | 72 | ||
73 | 73 | let _totalStawLP = "TotalStawLP" | |
74 | 74 | ||
75 | 75 | let _globalIndexCount = "IndexCount" | |
76 | 76 | ||
77 | 77 | func _getI (key) = getInteger(this, key) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func _getS (key) = getString(this, key) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func _getB (key) = getBoolean(this, key) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func _getBV (key) = value(getBoolean(this, key)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func _getIV (key) = value(getInteger(this, key)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func _getSV (key) = value(getString(this, key)) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func _setParamVal (key,defaultVal) = match defaultVal { | |
96 | 96 | case defaultVal: String => | |
97 | 97 | if (isDefined(_getS(key))) | |
98 | 98 | then _getSV(key) | |
99 | 99 | else defaultVal | |
100 | 100 | case defaultVal: Int => | |
101 | 101 | if (isDefined(_getI(key))) | |
102 | 102 | then _getIV(key) | |
103 | 103 | else defaultVal | |
104 | 104 | case defaultVal: Boolean => | |
105 | 105 | if (isDefined(_getB(key))) | |
106 | 106 | then _getBV(key) | |
107 | 107 | else defaultVal | |
108 | 108 | case _ => | |
109 | 109 | throw(("value type not supported for " + key)) | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func _throwOrReturnS (val,error) = match val { | |
114 | 114 | case val: String => | |
115 | 115 | val | |
116 | 116 | case _ => | |
117 | 117 | throw(error) | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func _throwOrReturnI (val,error) = match val { | |
122 | 122 | case val: Int => | |
123 | 123 | val | |
124 | 124 | case _ => | |
125 | 125 | throw(error) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func _throwOrReturnBool (val,error) = match val { | |
130 | 130 | case val: Boolean => | |
131 | 131 | val | |
132 | 132 | case _ => | |
133 | 133 | throw(error) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func _writeInt (key,value) = if ((0 > value)) | |
138 | 138 | then throw(((("writing negative value " + toString(value)) + " for key ") + key)) | |
139 | 139 | else IntegerEntry(key, value) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func _writeStr (key,value) = if ((" " == value)) | |
143 | 143 | then throw(("writing an empty string " + value)) | |
144 | 144 | else StringEntry(key, value) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func _throwIf (condition,error) = if (condition) | |
148 | 148 | then throw(error) | |
149 | 149 | else true | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func _writeGlobalParam (key,_value) = match _value { | |
153 | 153 | case _value: Int => | |
154 | 154 | let entry = makeString(["%d", toString(_value)], SEP) | |
155 | 155 | _writeStr(key, entry) | |
156 | 156 | case _value: String => | |
157 | 157 | let entry = makeString(["%s", _value], SEP) | |
158 | 158 | _writeStr(key, entry) | |
159 | 159 | case _value: Boolean => | |
160 | 160 | let entry = makeString(["%b", toString(_value)], SEP) | |
161 | 161 | _writeStr(key, entry) | |
162 | 162 | case _ => | |
163 | 163 | throw("type not supported") | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func _getRegistryEntryValue (key) = { | |
168 | 168 | let _rawValue = _throwOrReturnS(_getS(key), "entry not found") | |
169 | 169 | if ((_rawValue == _rawValue)) | |
170 | 170 | then { | |
171 | 171 | let x = split(_rawValue, SEP) | |
172 | 172 | let formatSpecifier = takeRight(x[0], 1) | |
173 | 173 | let _valueString = x[(size(x) - 1)] | |
174 | 174 | let _value = if ((formatSpecifier == "s")) | |
175 | 175 | then _valueString | |
176 | 176 | else if ((formatSpecifier == "d")) | |
177 | 177 | then parseIntValue(_valueString) | |
178 | 178 | else if ((formatSpecifier == "b")) | |
179 | 179 | then fromBase58String(_valueString) | |
180 | 180 | else throw(("could not parse registry value for " + key)) | |
181 | 181 | _value | |
182 | 182 | } | |
183 | 183 | else throw("Strict value is not equal to itself.") | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func _daysToMiliSec (days) = { | |
188 | 188 | let check = _throwIf((0 >= days), "invalid locking days!") | |
189 | 189 | if ((check == check)) | |
190 | 190 | then (days * _Dt) | |
191 | 191 | else throw("Strict value is not equal to itself.") | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func _writeConstString (key,value) = if (!(isDefined(_getS(key)))) | |
196 | 196 | then _writeStr(key, value) | |
197 | 197 | else throw(("entry already initialized: " + key)) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func _writeConstInteger (key,value) = if (!(isDefined(_getS(key)))) | |
201 | 201 | then _writeInt(key, value) | |
202 | 202 | else throw((" entry already initialized: " + key)) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func _onlyManager (i) = { | |
206 | 206 | let manager = match _getRegistryEntryValue(_manager) { | |
207 | 207 | case val: String => | |
208 | 208 | val | |
209 | 209 | case _ => | |
210 | 210 | "failed to get manager" | |
211 | 211 | } | |
212 | 212 | if ((manager == manager)) | |
213 | 213 | then _throwIf((toBase58String(i.caller.bytes) != manager), "address not authorized") | |
214 | 214 | else throw("Strict value is not equal to itself.") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func _abs (val) = if ((0 > val)) | |
219 | 219 | then -(val) | |
220 | 220 | else val | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func _validateAddress (address) = match address { | |
224 | 224 | case address: String => | |
225 | 225 | let _address = addressFromString(address) | |
226 | 226 | match _address { | |
227 | 227 | case _address: Address => | |
228 | 228 | true | |
229 | 229 | case _ => | |
230 | 230 | throw("invalid address") | |
231 | 231 | } | |
232 | 232 | case address: ByteVector => | |
233 | 233 | let _address = addressFromPublicKey(address) | |
234 | 234 | match _address { | |
235 | 235 | case _address: Address => | |
236 | 236 | true | |
237 | 237 | case _ => | |
238 | 238 | throw("invalid public key") | |
239 | 239 | } | |
240 | 240 | case _ => | |
241 | 241 | throw("invalid input type") | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func _validateAsset (assetID) = match assetInfo(fromBase58String(assetID)) { | |
246 | 246 | case asset: Asset => | |
247 | 247 | true | |
248 | 248 | case _ => | |
249 | 249 | throw(("invalid asset id: " + assetID)) | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func _computeMr () = { | |
254 | 254 | let currentCircIndex = match _getRegistryEntryValue(_circulationIncrIndex) { | |
255 | 255 | case t: Int => | |
256 | 256 | t | |
257 | 257 | case _ => | |
258 | 258 | throw("circulation index not previously defined") | |
259 | 259 | } | |
260 | 260 | if ((currentCircIndex == currentCircIndex)) | |
261 | 261 | then { | |
262 | 262 | let stawAssetId = match _getRegistryEntryValue(_stawAssetId) { | |
263 | 263 | case t: String => | |
264 | 264 | t | |
265 | 265 | case _ => | |
266 | 266 | throw("asset id not previously defined") | |
267 | 267 | } | |
268 | 268 | if ((stawAssetId == stawAssetId)) | |
269 | 269 | then { | |
270 | 270 | let stawCirculatingSupply = match assetInfo(fromBase58String(stawAssetId)) { | |
271 | 271 | case asset: Asset => | |
272 | 272 | asset.quantity | |
273 | 273 | case _ => | |
274 | 274 | throw(("asset not found for " + stawAssetId)) | |
275 | 275 | } | |
276 | 276 | let unitIncrement = (_abs((stawCirculatingSupply - _incrementRef)) / _incrementRef) | |
277 | 277 | let newCirculationIncrIndex = if ((unitIncrement > currentCircIndex)) | |
278 | 278 | then (unitIncrement + currentCircIndex) | |
279 | 279 | else currentCircIndex | |
280 | - | let currentMr = _throwOrReturnI(_Mr, "miniting rate not previously defined") | |
280 | + | let currentMr = match _getRegistryEntryValue(_Mr) { | |
281 | + | case t: Int => | |
282 | + | t | |
283 | + | case _ => | |
284 | + | throw("failed to get miniting rate") | |
285 | + | } | |
281 | 286 | if ((newCirculationIncrIndex == currentCircIndex)) | |
282 | 287 | then currentMr | |
283 | 288 | else { | |
284 | - | let newreductionFactor = (_throwOrReturnI(_percentageReductionFactor, "reduction factor not previously defined") + 10) | |
289 | + | let newreductionFactor = match _getRegistryEntryValue(_percentageReductionFactor) { | |
290 | + | case t: Int => | |
291 | + | t | |
292 | + | case _ => | |
293 | + | throw("failed to get percentage reduction factor") | |
294 | + | } | |
285 | 295 | let newCurrentMr = (currentMr - fraction(currentMr, newreductionFactor, 100)) | |
286 | 296 | let store1 = _writeInt(_Mr, newCurrentMr) | |
287 | 297 | if ((store1 == store1)) | |
288 | 298 | then { | |
289 | 299 | let store2 = _writeInt(_percentageReductionFactor, newreductionFactor) | |
290 | 300 | if ((store2 == store2)) | |
291 | 301 | then { | |
292 | 302 | let store3 = _writeInt(_circulationIncrIndex, newCirculationIncrIndex) | |
293 | 303 | if ((store3 == store3)) | |
294 | 304 | then newCurrentMr | |
295 | 305 | else throw("Strict value is not equal to itself.") | |
296 | 306 | } | |
297 | 307 | else throw("Strict value is not equal to itself.") | |
298 | 308 | } | |
299 | 309 | else throw("Strict value is not equal to itself.") | |
300 | 310 | } | |
301 | 311 | } | |
302 | 312 | else throw("Strict value is not equal to itself.") | |
303 | 313 | } | |
304 | 314 | else throw("Strict value is not equal to itself.") | |
305 | 315 | } | |
306 | 316 | ||
307 | 317 | ||
308 | 318 | func _updateGlobalEntry (wavesAmount,stawAmount,stawPL,indexCount) = { | |
309 | 319 | let _newGlobalTotalWavesAmtRef = match _getRegistryEntryValue(_totalWavesRef) { | |
310 | 320 | case t: Int => | |
311 | 321 | (t + wavesAmount) | |
312 | 322 | case _ => | |
313 | 323 | throw("failed to get global total waves") | |
314 | 324 | } | |
315 | 325 | if ((_newGlobalTotalWavesAmtRef == _newGlobalTotalWavesAmtRef)) | |
316 | 326 | then { | |
317 | 327 | let _newGlobalTotalStawMinted = match _getRegistryEntryValue(_totalStaw) { | |
318 | 328 | case t: Int => | |
319 | 329 | (t + stawAmount) | |
320 | 330 | case _ => | |
321 | 331 | throw("failed to get global total staw minted") | |
322 | 332 | } | |
323 | 333 | if ((_newGlobalTotalStawMinted == _newGlobalTotalStawMinted)) | |
324 | 334 | then { | |
325 | 335 | let _newGlobalTotalStawPL = match _getRegistryEntryValue(_totalStawLP) { | |
326 | 336 | case t: Int => | |
327 | 337 | (t + stawPL) | |
328 | 338 | case _ => | |
329 | 339 | throw("failed to get global total stawpl") | |
330 | 340 | } | |
331 | 341 | if ((_newGlobalTotalStawPL == _newGlobalTotalStawPL)) | |
332 | 342 | then { | |
333 | 343 | let _newGlobaIndexCount = match _getRegistryEntryValue(_globalIndexCount) { | |
334 | 344 | case t: Int => | |
335 | 345 | (t + indexCount) | |
336 | 346 | case _ => | |
337 | 347 | throw("failed to get global index count") | |
338 | 348 | } | |
339 | 349 | if ((_newGlobaIndexCount == _newGlobaIndexCount)) | |
340 | 350 | then [_writeGlobalParam(_totalWavesRef, _newGlobalTotalWavesAmtRef), _writeGlobalParam(_totalStaw, _newGlobalTotalStawMinted), _writeGlobalParam(_totalStawLP, _newGlobalTotalStawPL), _writeGlobalParam(_globalIndexCount, _newGlobaIndexCount)] | |
341 | 351 | else throw("Strict value is not equal to itself.") | |
342 | 352 | } | |
343 | 353 | else throw("Strict value is not equal to itself.") | |
344 | 354 | } | |
345 | 355 | else throw("Strict value is not equal to itself.") | |
346 | 356 | } | |
347 | 357 | else throw("Strict value is not equal to itself.") | |
348 | 358 | } | |
349 | 359 | ||
350 | 360 | ||
351 | 361 | func _registerUserEntry (transactionID,userAddress,lockDuration,lockDurationInMili,lockIndex,wavesAmount,stawAmount,stawLPAmount,lockAtHeight,lockId,totalLocked,localIndexCount,leaseState) = { | |
352 | 362 | let _txIdKey = makeString([userAddress, transactionID, _txId], SEP) | |
353 | 363 | let _lockDurationKey = makeString([userAddress, transactionID, _lockDuration], SEP) | |
354 | 364 | let _lockIndexKey = makeString([userAddress, transactionID, _lockIndex], SEP) | |
355 | 365 | let _wavesAmountKey = makeString([userAddress, transactionID, _wavesAmount], SEP) | |
356 | 366 | let _stawAmountKey = makeString([userAddress, transactionID, _stawAmount], SEP) | |
357 | 367 | let _stawLPAmountKey = makeString([userAddress, transactionID, _stawLPAmount], SEP) | |
358 | 368 | let _lockAtHeightKey = makeString([userAddress, transactionID, _lockAtHeight], SEP) | |
359 | 369 | let _lockIdKey = makeString([userAddress, transactionID, _lockId], SEP) | |
360 | 370 | let _totalLockedKey = makeString([userAddress, _userTotalLocked], SEP) | |
361 | 371 | let _localLockIndexKey = makeString([userAddress, _userLocalIndexCount], SEP) | |
362 | 372 | let _lockPeriodInMiliSecKey = makeString([userAddress, transactionID, _lockPeriodInMiliSec], SEP) | |
363 | 373 | let _totalWavesClaimedKey = makeString([userAddress, transactionID, _totalWavesClaimed], SEP) | |
364 | 374 | let _userLeaseStateKey = makeString([userAddress, transactionID, _userLeaseState], SEP) | |
365 | 375 | let trxIdEntry = makeString(["%s", transactionID], SEP) | |
366 | 376 | let lockDurationEntry = makeString(["%d", toString(lockDuration)], SEP) | |
367 | 377 | let lockIndexEntry = makeString(["%d", toString(lockIndex)], SEP) | |
368 | 378 | let wavesAmountEntry = makeString(["%d", toString(wavesAmount)], SEP) | |
369 | 379 | let stawAmountEntry = makeString(["%d", toString(stawAmount)], SEP) | |
370 | 380 | let stawLPAmountEntry = makeString(["%d", toString(stawLPAmount)], SEP) | |
371 | 381 | let lockAtHeightEntry = makeString(["%d", toString(lockAtHeight)], SEP) | |
372 | 382 | let lockIdEntry = makeString(["%b", lockId], SEP) | |
373 | 383 | let totalLockedEntry = makeString(["%d", toString(totalLocked)], SEP) | |
374 | 384 | let userLocalIndexEntry = makeString(["%d", toString(localIndexCount)], SEP) | |
375 | 385 | let lockPeriodInMiliSecEntry = makeString(["%d", toString(lockDurationInMili)], SEP) | |
376 | 386 | let totalWavesClaimedEntry = makeString(["%d", toString(0)], SEP) | |
377 | 387 | let userLeaseStateEntry = makeString(["%s", leaseState], SEP) | |
378 | 388 | [_writeConstString(_txIdKey, trxIdEntry), _writeConstString(_lockIndexKey, lockIndexEntry), _writeStr(_localLockIndexKey, userLocalIndexEntry), _writeStr(_totalLockedKey, totalLockedEntry), _writeConstString(_lockDurationKey, lockDurationEntry), _writeConstString(_lockPeriodInMiliSecKey, lockPeriodInMiliSecEntry), _writeConstString(_wavesAmountKey, wavesAmountEntry), _writeConstString(_stawAmountKey, stawAmountEntry), _writeStr(_stawLPAmountKey, stawLPAmountEntry), _writeStr(_totalWavesClaimedKey, totalWavesClaimedEntry), _writeConstString(_lockAtHeightKey, lockAtHeightEntry), _writeConstString(_lockIdKey, lockIdEntry), _writeStr(_userLeaseStateKey, userLeaseStateEntry)] | |
379 | 389 | } | |
380 | 390 | ||
381 | 391 | ||
382 | 392 | func _stawMF (lockPeriod,collateralWaves) = { | |
383 | 393 | let _adjustedMr = _computeMr() | |
384 | 394 | (fraction(_unitDecimals, (_Dt * _adjustedMr), _Ppy(lockPeriod)) * collateralWaves) | |
385 | 395 | } | |
386 | 396 | ||
387 | 397 | ||
388 | 398 | func _emissionRateWaves (lockPeriod,collateral) = { | |
389 | 399 | let extensionFactor = fraction(lockPeriod, 15, 10) | |
390 | 400 | ((collateral / ((lockPeriod * extensionFactor) - lockPeriod)) * _Dt) | |
391 | 401 | } | |
392 | 402 | ||
393 | 403 | ||
394 | 404 | func _incrTotalStawLP (amount) = { | |
395 | 405 | let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP") | |
396 | 406 | [_writeInt(_totalStawLP, (oldStawLP + amount))] | |
397 | 407 | } | |
398 | 408 | ||
399 | 409 | ||
400 | 410 | func _decrTotalStawLP (amount) = { | |
401 | 411 | let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP") | |
402 | 412 | [_writeInt(_totalStawLP, (oldStawLP - amount))] | |
403 | 413 | } | |
404 | 414 | ||
405 | 415 | ||
406 | 416 | func _incrTotalWavesRef (amount) = { | |
407 | 417 | let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves") | |
408 | 418 | [_writeInt(_totalWavesRef, (oldWavesRef + amount))] | |
409 | 419 | } | |
410 | 420 | ||
411 | 421 | ||
412 | 422 | func _decrTotalWavesRef (amount) = { | |
413 | 423 | let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves") | |
414 | 424 | [_writeInt(_totalWavesRef, (oldWavesRef - amount))] | |
415 | 425 | } | |
416 | 426 | ||
417 | 427 | ||
418 | 428 | func _getNewTimeStamp (blockHeight) = { | |
419 | 429 | let time = match blockInfoByHeight(blockHeight) { | |
420 | 430 | case timeInfo: BlockInfo => | |
421 | 431 | timeInfo.timestamp | |
422 | 432 | case _ => | |
423 | 433 | throw("counld get timestamp") | |
424 | 434 | } | |
425 | 435 | time | |
426 | 436 | } | |
427 | 437 | ||
428 | 438 | ||
429 | 439 | @Callable(i) | |
430 | 440 | func getEmission (lockPeriod,collateral) = { | |
431 | 441 | let check1 = _onlyManager(i) | |
432 | 442 | if ((check1 == check1)) | |
433 | 443 | then $Tuple2(nil, _emissionRateWaves(lockPeriod, collateral)) | |
434 | 444 | else throw("Strict value is not equal to itself.") | |
435 | 445 | } | |
436 | 446 | ||
437 | 447 | ||
438 | 448 | ||
439 | 449 | @Callable(i) | |
440 | 450 | func init (manager,dfx,assetID,leaseNode) = { | |
441 | 451 | let managerAlreadyExists = if (isDefined(_getS(_manager))) | |
442 | 452 | then _onlyManager(i) | |
443 | 453 | else true | |
444 | 454 | if ((managerAlreadyExists == managerAlreadyExists)) | |
445 | 455 | then { | |
446 | 456 | let check1 = _validateAddress(manager) | |
447 | 457 | if ((check1 == check1)) | |
448 | 458 | then { | |
449 | 459 | let check2 = _validateAddress(dfx) | |
450 | 460 | if ((check2 == check2)) | |
451 | 461 | then { | |
452 | 462 | let check3 = _validateAddress(leaseNode) | |
453 | 463 | if ((check3 == check3)) | |
454 | 464 | then { | |
455 | 465 | let check4 = _validateAsset(assetID) | |
456 | 466 | if ((check4 == check4)) | |
457 | 467 | then { | |
458 | 468 | let circulationIndex = _setParamVal(_circulationIncrIndex, 0) | |
459 | 469 | let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0) | |
460 | 470 | let Mr = _setParamVal(_Mr, _unitDecimals) | |
461 | 471 | let totalStawMinted = _setParamVal(_totalStaw, 0) | |
462 | 472 | let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0) | |
463 | 473 | let globalIndexCount = _setParamVal(_globalIndexCount, 0) | |
464 | 474 | let totalWavesRef = _setParamVal(_totalWavesRef, 0) | |
465 | 475 | [_writeGlobalParam(_manager, manager), _writeGlobalParam(_Dfx, dfx), _writeGlobalParam(_stawAssetId, assetID), _writeGlobalParam(_lesseeAddress, leaseNode), _writeGlobalParam(_circulationIncrIndex, circulationIndex), _writeGlobalParam(_Mr, Mr), _writeGlobalParam(_percentageReductionFactor, percentageReductionInMr), _writeGlobalParam(_totalWavesRef, totalWavesRef), _writeGlobalParam(_totalStawLP, totalStawLPInCirculation), _writeGlobalParam(_totalStaw, totalStawMinted)] | |
466 | 476 | } | |
467 | 477 | else throw("Strict value is not equal to itself.") | |
468 | 478 | } | |
469 | 479 | else throw("Strict value is not equal to itself.") | |
470 | 480 | } | |
471 | 481 | else throw("Strict value is not equal to itself.") | |
472 | 482 | } | |
473 | 483 | else throw("Strict value is not equal to itself.") | |
474 | 484 | } | |
475 | 485 | else throw("Strict value is not equal to itself.") | |
476 | 486 | } | |
477 | 487 | ||
478 | 488 | ||
479 | 489 | ||
480 | 490 | @Callable(i) | |
481 | 491 | func modifyGlobalParams (val) = { | |
482 | 492 | let check1 = _onlyManager(i) | |
483 | 493 | if ((check1 == check1)) | |
484 | 494 | then { | |
485 | 495 | let check2 = _throwIf((size(val) == 2), "[global_key, value] pairs expected") | |
486 | 496 | if ((check2 == check2)) | |
487 | 497 | then { | |
488 | 498 | let key = val[0] | |
489 | 499 | let valType = parseInt(val[1]) | |
490 | 500 | match valType { | |
491 | 501 | case x: Int => | |
492 | 502 | let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized")) | |
493 | 503 | if ((validateKey == validateKey)) | |
494 | 504 | then [_writeGlobalParam(key, x)] | |
495 | 505 | else throw("Strict value is not equal to itself.") | |
496 | 506 | case x: Unit => | |
497 | 507 | let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized")) | |
498 | 508 | if ((validateKey == validateKey)) | |
499 | 509 | then { | |
500 | 510 | let stringValue = val[1] | |
501 | 511 | let refAddress = _getRegistryEntryValue(_manager) | |
502 | 512 | let check4 = match refAddress { | |
503 | 513 | case strType: String => | |
504 | 514 | if ((size(strType) == size(stringValue))) | |
505 | 515 | then _validateAddress(stringValue) | |
506 | 516 | else _validateAsset(stringValue) | |
507 | 517 | case _ => | |
508 | 518 | throw("value type not supported") | |
509 | 519 | } | |
510 | 520 | if ((check4 == check4)) | |
511 | 521 | then [_writeGlobalParam(key, stringValue)] | |
512 | 522 | else throw("Strict value is not equal to itself.") | |
513 | 523 | } | |
514 | 524 | else throw("Strict value is not equal to itself.") | |
515 | 525 | case _ => | |
516 | 526 | throw(("failed to modify " + val[0])) | |
517 | 527 | } | |
518 | 528 | } | |
519 | 529 | else throw("Strict value is not equal to itself.") | |
520 | 530 | } | |
521 | 531 | else throw("Strict value is not equal to itself.") | |
522 | 532 | } | |
523 | 533 | ||
524 | 534 | ||
525 | 535 | ||
526 | 536 | @Callable(i) | |
527 | 537 | func revokeLock () = { | |
528 | 538 | let check1 = _onlyManager(i) | |
529 | 539 | if ((check1 == check1)) | |
530 | 540 | then nil | |
531 | 541 | else throw("Strict value is not equal to itself.") | |
532 | 542 | } | |
533 | 543 | ||
534 | 544 | ||
535 | 545 | ||
536 | 546 | @Callable(i) | |
537 | 547 | func claim (transactionID) = { | |
538 | 548 | let callerAddress = toBase58String(i.caller.bytes) | |
539 | 549 | let collateralKey = makeString([callerAddress, transactionID, _wavesAmount], SEP) | |
540 | 550 | let lockperiodKey = makeString([callerAddress, transactionID, _lockDuration], SEP) | |
541 | 551 | let lockIdKey = makeString([callerAddress, transactionID, _lockId], SEP) | |
542 | 552 | let lockperiodInMiliKey = makeString([callerAddress, transactionID, _lockPeriodInMiliSec], SEP) | |
543 | 553 | let totalWavesClaimedKey = makeString([callerAddress, transactionID, _totalWavesClaimed], SEP) | |
544 | 554 | let stawLPAmountKey = makeString([callerAddress, transactionID, _stawLPAmount], SEP) | |
545 | 555 | let wavesAmountKey = makeString([callerAddress, transactionID, _wavesAmount], SEP) | |
546 | 556 | let userTotalWavesLockedKey = makeString([callerAddress, _userTotalLocked], SEP) | |
547 | 557 | let userLeaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP) | |
548 | 558 | let leaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP) | |
549 | 559 | let globalWavesRef = match _getRegistryEntryValue(_totalWavesRef) { | |
550 | 560 | case t: Int => | |
551 | 561 | t | |
552 | 562 | case _ => | |
553 | 563 | throw("failed to get global total waves") | |
554 | 564 | } | |
555 | 565 | if ((globalWavesRef == globalWavesRef)) | |
556 | 566 | then { | |
557 | 567 | let globalStawPL = match _getRegistryEntryValue(_totalStawLP) { | |
558 | 568 | case t: Int => | |
559 | 569 | t | |
560 | 570 | case _ => | |
561 | 571 | throw("failed to get global total waves") | |
562 | 572 | } | |
563 | 573 | if ((globalStawPL == globalStawPL)) | |
564 | 574 | then { | |
565 | 575 | let lockId = match _getRegistryEntryValue(lockIdKey) { | |
566 | 576 | case t: ByteVector => | |
567 | 577 | t | |
568 | 578 | case _ => | |
569 | 579 | throw("failed to get lease id") | |
570 | 580 | } | |
571 | 581 | if ((lockId == lockId)) | |
572 | 582 | then { | |
573 | 583 | let userTotalWavesLocked = match _getRegistryEntryValue(userTotalWavesLockedKey) { | |
574 | 584 | case t: Int => | |
575 | 585 | t | |
576 | 586 | case _ => | |
577 | 587 | throw("failed to get total waves locked by this address") | |
578 | 588 | } | |
579 | 589 | if ((userTotalWavesLocked == userTotalWavesLocked)) | |
580 | 590 | then { | |
581 | 591 | let wavesAmount = match _getRegistryEntryValue(wavesAmountKey) { | |
582 | 592 | case t: Int => | |
583 | 593 | t | |
584 | 594 | case _ => | |
585 | 595 | throw("failed to get total waves locked") | |
586 | 596 | } | |
587 | 597 | if ((wavesAmount == wavesAmount)) | |
588 | 598 | then { | |
589 | 599 | let totalWavesClaimed = match _getRegistryEntryValue(totalWavesClaimedKey) { | |
590 | 600 | case t: Int => | |
591 | 601 | t | |
592 | 602 | case _ => | |
593 | 603 | throw("failed to get total waves claimed") | |
594 | 604 | } | |
595 | 605 | if ((totalWavesClaimed == totalWavesClaimed)) | |
596 | 606 | then { | |
597 | 607 | let stawLPAmount = match _getRegistryEntryValue(stawLPAmountKey) { | |
598 | 608 | case t: Int => | |
599 | 609 | t | |
600 | 610 | case _ => | |
601 | 611 | throw("failed to get stawPL") | |
602 | 612 | } | |
603 | 613 | if ((stawLPAmount == stawLPAmount)) | |
604 | 614 | then { | |
605 | 615 | let lockPeriodInMili = match _getRegistryEntryValue(lockperiodInMiliKey) { | |
606 | 616 | case t: Int => | |
607 | 617 | t | |
608 | 618 | case _ => | |
609 | 619 | throw("failed to get lock period timespam") | |
610 | 620 | } | |
611 | 621 | if ((lockPeriodInMili == lockPeriodInMili)) | |
612 | 622 | then { | |
613 | 623 | let currentTimeStamp = match _getNewTimeStamp(height) { | |
614 | 624 | case t: Int => | |
615 | 625 | t | |
616 | 626 | case _ => | |
617 | 627 | throw("failed to get current timestamp") | |
618 | 628 | } | |
619 | 629 | if ((currentTimeStamp == currentTimeStamp)) | |
620 | 630 | then { | |
621 | 631 | let collateral = match _getRegistryEntryValue(collateralKey) { | |
622 | 632 | case t: Int => | |
623 | 633 | t | |
624 | 634 | case _ => | |
625 | 635 | throw("failed to get collateral") | |
626 | 636 | } | |
627 | 637 | if ((collateral == collateral)) | |
628 | 638 | then { | |
629 | 639 | let lockPeriod = match _getRegistryEntryValue(lockperiodKey) { | |
630 | 640 | case t: Int => | |
631 | 641 | t | |
632 | 642 | case _ => | |
633 | 643 | throw("failed to get lockPeriod") | |
634 | 644 | } | |
635 | 645 | if ((lockPeriod == lockPeriod)) | |
636 | 646 | then { | |
637 | 647 | let currentLeaseState = match _getRegistryEntryValue(userLeaseStateKey) { | |
638 | 648 | case t: String => | |
639 | 649 | t | |
640 | 650 | case _ => | |
641 | 651 | throw("failed to get lease state") | |
642 | 652 | } | |
643 | 653 | if ((currentLeaseState == currentLeaseState)) | |
644 | 654 | then { | |
645 | 655 | let leaseState = match _getRegistryEntryValue(leaseStateKey) { | |
646 | 656 | case t: String => | |
647 | 657 | t | |
648 | 658 | case _ => | |
649 | 659 | throw("failed to get lease state for user") | |
650 | 660 | } | |
651 | 661 | if ((leaseState == leaseState)) | |
652 | 662 | then { | |
653 | 663 | let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed") | |
654 | 664 | if ((check1 == check1)) | |
655 | 665 | then { | |
656 | 666 | let leaseAction = if ((currentLeaseState == "leased")) | |
657 | 667 | then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled")) | |
658 | 668 | else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled")) | |
659 | 669 | if ((leaseAction == leaseAction)) | |
660 | 670 | then { | |
661 | 671 | let check2 = _throwIf(if ((0 == wavesAmount)) | |
662 | 672 | then true | |
663 | 673 | else (0 == stawLPAmount), "all claims exhausted for this trx") | |
664 | 674 | if ((check2 == check2)) | |
665 | 675 | then { | |
666 | 676 | let emissionValuePerDT = (_emissionRateWaves(lockPeriod, collateral) * _Dt) | |
667 | 677 | let claimAction = { | |
668 | 678 | let timeStampDiff = (currentTimeStamp - lockPeriodInMili) | |
669 | 679 | let daysAfterLockPeriodElasped = (timeStampDiff / _Dt) | |
670 | 680 | if ((daysAfterLockPeriodElasped == 0)) | |
671 | 681 | then throw("less than 24hrs before first claim") | |
672 | 682 | else if (((timeStampDiff % _Dt) != 0)) | |
673 | 683 | then throw("already claimed or less than 24hrs before next claim") | |
674 | 684 | else if ((daysAfterLockPeriodElasped > lockPeriod)) | |
675 | 685 | then throw("all claims exhausted") | |
676 | 686 | else { | |
677 | 687 | let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT) | |
678 | 688 | let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs") | |
679 | 689 | if ((check3_1 == check3_1)) | |
680 | 690 | then { | |
681 | 691 | let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted") | |
682 | 692 | if ((check3_2 == check3_2)) | |
683 | 693 | then { | |
684 | 694 | let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1)) | |
685 | 695 | then totalAmountClaimable | |
686 | 696 | else (totalAmountClaimable - totalWavesClaimed) | |
687 | 697 | let newTotalWavesClaim = totalAmountClaimable | |
688 | 698 | let newWavesAmount = if ((daysAfterLockPeriodElasped == 1)) | |
689 | 699 | then (wavesAmount - totalAmountClaimable) | |
690 | 700 | else (wavesAmount - (totalAmountClaimable - totalWavesClaimed)) | |
691 | 701 | let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1)) | |
692 | 702 | then (stawLPAmount - totalAmountClaimable) | |
693 | 703 | else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed)) | |
694 | 704 | let newGlobalWaveRef = (globalWavesRef - newWavesAmount) | |
695 | 705 | let newGlobalStawPL = (globalStawPL - newStawLPAmount) | |
696 | 706 | let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend) | |
697 | 707 | let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP) | |
698 | 708 | let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP) | |
699 | 709 | let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP) | |
700 | 710 | let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP) | |
701 | 711 | [leaseAction._1, leaseAction._2, _writeStr(wavesAmountKey, wavesAmountEntry), _writeStr(stawLPAmountKey, stawLPAmountEntry), _writeStr(totalWavesClaimedKey, totalWavesClaimedEntry), _writeStr(userTotalWavesLockedKey, newUserTotalWavesLockedEntry), _writeGlobalParam(_totalWavesRef, newGlobalWaveRef), _writeGlobalParam(_totalStawLP, newGlobalStawPL), ScriptTransfer(Address(i.caller.bytes), claimAmountToSend, unit)] | |
702 | 712 | } | |
703 | 713 | else throw("Strict value is not equal to itself.") | |
704 | 714 | } | |
705 | 715 | else throw("Strict value is not equal to itself.") | |
706 | 716 | } | |
707 | 717 | } | |
708 | 718 | if ((claimAction == claimAction)) | |
709 | 719 | then claimAction | |
710 | 720 | else throw("Strict value is not equal to itself.") | |
711 | 721 | } | |
712 | 722 | else throw("Strict value is not equal to itself.") | |
713 | 723 | } | |
714 | 724 | else throw("Strict value is not equal to itself.") | |
715 | 725 | } | |
716 | 726 | else throw("Strict value is not equal to itself.") | |
717 | 727 | } | |
718 | 728 | else throw("Strict value is not equal to itself.") | |
719 | 729 | } | |
720 | 730 | else throw("Strict value is not equal to itself.") | |
721 | 731 | } | |
722 | 732 | else throw("Strict value is not equal to itself.") | |
723 | 733 | } | |
724 | 734 | else throw("Strict value is not equal to itself.") | |
725 | 735 | } | |
726 | 736 | else throw("Strict value is not equal to itself.") | |
727 | 737 | } | |
728 | 738 | else throw("Strict value is not equal to itself.") | |
729 | 739 | } | |
730 | 740 | else throw("Strict value is not equal to itself.") | |
731 | 741 | } | |
732 | 742 | else throw("Strict value is not equal to itself.") | |
733 | 743 | } | |
734 | 744 | else throw("Strict value is not equal to itself.") | |
735 | 745 | } | |
736 | 746 | else throw("Strict value is not equal to itself.") | |
737 | 747 | } | |
738 | 748 | else throw("Strict value is not equal to itself.") | |
739 | 749 | } | |
740 | 750 | else throw("Strict value is not equal to itself.") | |
741 | 751 | } | |
742 | 752 | else throw("Strict value is not equal to itself.") | |
743 | 753 | } | |
744 | 754 | ||
745 | 755 | ||
746 | 756 | ||
747 | 757 | @Callable(i) | |
748 | 758 | func mintStaw (lockPeriod) = { | |
749 | 759 | let callerAddress = toBase58String(i.caller.bytes) | |
750 | 760 | let trxID = toBase58String(i.transactionId) | |
751 | 761 | let check1 = _throwIf((1 != size(i.payments)), "no payments attached") | |
752 | 762 | if ((check1 == check1)) | |
753 | 763 | then { | |
754 | 764 | let check2 = if (isDefined(i.payments[0].assetId)) | |
755 | 765 | then throw("only waves supported") | |
756 | 766 | else true | |
757 | 767 | if ((check2 == check2)) | |
758 | 768 | then { | |
759 | 769 | let amountInWaves = i.payments[0].amount | |
760 | 770 | let check3 = if (if ((_minLockAmount > amountInWaves)) | |
761 | 771 | then true | |
762 | 772 | else (amountInWaves > _maxLockAmount)) | |
763 | 773 | then throw("amount to lock is out of range") | |
764 | 774 | else true | |
765 | 775 | if ((check3 == check3)) | |
766 | 776 | then { | |
767 | 777 | let check4 = if ((_minLockperiod > lockPeriod)) | |
768 | 778 | then throw("minimum of 14 days lock period") | |
769 | 779 | else true | |
770 | 780 | if ((check4 == check4)) | |
771 | 781 | then { | |
772 | 782 | let totalStawMint = _stawMF(lockPeriod, amountInWaves) | |
773 | 783 | let stawPL = amountInWaves | |
774 | 784 | let fee = fraction(totalStawMint, 10, 100) | |
775 | 785 | let userGetStawAmount = (totalStawMint - fee) | |
776 | 786 | let lockPeriodToMilisec = (_getNewTimeStamp(height) + _daysToMiliSec(lockPeriod)) | |
777 | 787 | if ((lockPeriodToMilisec == lockPeriodToMilisec)) | |
778 | 788 | then { | |
779 | 789 | let new_index = (_throwOrReturnI(_getI(_globalIndexCount), "global index not previously defined") + 1) | |
780 | 790 | if ((new_index == new_index)) | |
781 | 791 | then { | |
782 | 792 | let addressFee = match _getRegistryEntryValue(_Dfx) { | |
783 | 793 | case t: String => | |
784 | 794 | Address(fromBase58String(t)) | |
785 | 795 | case _ => | |
786 | 796 | throw("failed to get dfx address") | |
787 | 797 | } | |
788 | 798 | if ((addressFee == addressFee)) | |
789 | 799 | then { | |
790 | 800 | let stawAssetId = match _getRegistryEntryValue(_stawAssetId) { | |
791 | 801 | case t: String => | |
792 | 802 | fromBase58String(t) | |
793 | 803 | case _ => | |
794 | 804 | throw("failed to get asset id") | |
795 | 805 | } | |
796 | 806 | if ((stawAssetId == stawAssetId)) | |
797 | 807 | then { | |
798 | 808 | let lessee = match _getRegistryEntryValue(_lesseeAddress) { | |
799 | 809 | case t: String => | |
800 | 810 | Address(fromBase58String(t)) | |
801 | 811 | case _ => | |
802 | 812 | throw("failed to get lease node address") | |
803 | 813 | } | |
804 | 814 | if ((lessee == lessee)) | |
805 | 815 | then { | |
806 | 816 | let userLockIndexKey = makeString([callerAddress, _userLocalIndexCount], SEP) | |
807 | 817 | let userTotalLockedKey = makeString([callerAddress, _userTotalLocked], SEP) | |
808 | 818 | let userIndexCount = match _getRegistryEntryValue(userLockIndexKey) { | |
809 | 819 | case x: Int => | |
810 | 820 | (x + 1) | |
811 | 821 | case _ => | |
812 | 822 | 0 | |
813 | 823 | } | |
814 | 824 | if ((userIndexCount == userIndexCount)) | |
815 | 825 | then { | |
816 | 826 | let userTotalLocked = match _getRegistryEntryValue(userTotalLockedKey) { | |
817 | 827 | case x: Int => | |
818 | 828 | (x + amountInWaves) | |
819 | 829 | case _ => | |
820 | 830 | amountInWaves | |
821 | 831 | } | |
822 | 832 | if ((userTotalLocked == userTotalLocked)) | |
823 | 833 | then { | |
824 | 834 | let leaseOut = Lease(lessee, amountInWaves) | |
825 | 835 | if ((leaseOut == leaseOut)) | |
826 | 836 | then { | |
827 | 837 | let leaseIdStr = toBase58String(calculateLeaseId(leaseOut)) | |
828 | 838 | if ((leaseIdStr == leaseIdStr)) | |
829 | 839 | then (([leaseOut, ScriptTransfer(addressFee, fee, stawAssetId), ScriptTransfer(Address(i.caller.bytes), userGetStawAmount, stawAssetId)] ++ _registerUserEntry(trxID, callerAddress, lockPeriod, lockPeriodToMilisec, new_index, amountInWaves, userGetStawAmount, stawPL, height, leaseIdStr, userTotalLocked, userIndexCount, "leased")) ++ _updateGlobalEntry(amountInWaves, totalStawMint, stawPL, new_index)) | |
830 | 840 | else throw("Strict value is not equal to itself.") | |
831 | 841 | } | |
832 | 842 | else throw("Strict value is not equal to itself.") | |
833 | 843 | } | |
834 | 844 | else throw("Strict value is not equal to itself.") | |
835 | 845 | } | |
836 | 846 | else throw("Strict value is not equal to itself.") | |
837 | 847 | } | |
838 | 848 | else throw("Strict value is not equal to itself.") | |
839 | 849 | } | |
840 | 850 | else throw("Strict value is not equal to itself.") | |
841 | 851 | } | |
842 | 852 | else throw("Strict value is not equal to itself.") | |
843 | 853 | } | |
844 | 854 | else throw("Strict value is not equal to itself.") | |
845 | 855 | } | |
846 | 856 | else throw("Strict value is not equal to itself.") | |
847 | 857 | } | |
848 | 858 | else throw("Strict value is not equal to itself.") | |
849 | 859 | } | |
850 | 860 | else throw("Strict value is not equal to itself.") | |
851 | 861 | } | |
852 | 862 | else throw("Strict value is not equal to itself.") | |
853 | 863 | } | |
854 | 864 | else throw("Strict value is not equal to itself.") | |
855 | 865 | } | |
856 | 866 | ||
857 | 867 |
github/deemru/w8io/169f3d6 86.56 ms ◑