tx · 7uvEcmkKYCMZoxPwoXyTD8wAWjd7BwGwgBs2wkE44Vtv 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH: -0.02400000 Waves 2023.03.16 14:37 [2492530] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves
{ "type": 13, "id": "7uvEcmkKYCMZoxPwoXyTD8wAWjd7BwGwgBs2wkE44Vtv", "fee": 2400000, "feeAssetId": null, "timestamp": 1678966696048, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "3iimcDW3jYwNRFxL7xnLPrJUZStmc344sYAfQkngjfgN8Zj8suTFMTxj266BHf6Xc3C1Wj8v8zxERmyfEVDSXap4" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRAADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX2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dCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAN1dU6Q=", "height": 2492530, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EEeCGrvQtX78pb5PeTguo392duVFJaQM9zaprx8gUx2W Next: 4sUvwCRrA7CrbAf9mzqWZ75sgoVJDyGtVbZsLYiL6HKp Diff:
Old | New | Differences | |
---|---|---|---|
485 | 485 | let check1 = _onlyManager(i) | |
486 | 486 | if ((check1 == check1)) | |
487 | 487 | then { | |
488 | - | let errorMsg = makeString(["got", toString(size(val)), " | |
489 | - | let check2 = _throwIf((size(val) | |
488 | + | let errorMsg = makeString(["got", "list size of", toString(size(val)), "but expected [global_key, value] pair"], " ") | |
489 | + | let check2 = _throwIf((size(val) != 2), errorMsg) | |
490 | 490 | if ((check2 == check2)) | |
491 | 491 | then { | |
492 | 492 | let key = val[0] |
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 | 280 | let currentMr = match _getRegistryEntryValue(_Mr) { | |
281 | 281 | case t: Int => | |
282 | 282 | t | |
283 | 283 | case _ => | |
284 | 284 | throw("failed to get miniting rate") | |
285 | 285 | } | |
286 | 286 | if ((newCirculationIncrIndex == currentCircIndex)) | |
287 | 287 | then $Tuple2(currentMr, nil) | |
288 | 288 | else { | |
289 | 289 | let newreductionFactor = match _getRegistryEntryValue(_percentageReductionFactor) { | |
290 | 290 | case t: Int => | |
291 | 291 | t | |
292 | 292 | case _ => | |
293 | 293 | throw("failed to get percentage reduction factor") | |
294 | 294 | } | |
295 | 295 | let newCurrentMr = (currentMr - fraction(currentMr, newreductionFactor, 100)) | |
296 | 296 | let store1 = _writeGlobalParam(_Mr, newCurrentMr) | |
297 | 297 | let store2 = _writeGlobalParam(_percentageReductionFactor, newreductionFactor) | |
298 | 298 | let store3 = _writeGlobalParam(_circulationIncrIndex, newCirculationIncrIndex) | |
299 | 299 | $Tuple2(newCurrentMr, [store1, store2, store3]) | |
300 | 300 | } | |
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 | func _updateGlobalEntry (wavesAmount,stawAmount,stawPL,indexCount) = { | |
309 | 309 | let _newGlobalTotalWavesAmtRef = match _getRegistryEntryValue(_totalWavesRef) { | |
310 | 310 | case t: Int => | |
311 | 311 | (t + wavesAmount) | |
312 | 312 | case _ => | |
313 | 313 | throw("failed to get global total waves") | |
314 | 314 | } | |
315 | 315 | if ((_newGlobalTotalWavesAmtRef == _newGlobalTotalWavesAmtRef)) | |
316 | 316 | then { | |
317 | 317 | let _newGlobalTotalStawMinted = match _getRegistryEntryValue(_totalStaw) { | |
318 | 318 | case t: Int => | |
319 | 319 | (t + stawAmount) | |
320 | 320 | case _ => | |
321 | 321 | throw("failed to get global total staw minted") | |
322 | 322 | } | |
323 | 323 | if ((_newGlobalTotalStawMinted == _newGlobalTotalStawMinted)) | |
324 | 324 | then { | |
325 | 325 | let _newGlobalTotalStawPL = match _getRegistryEntryValue(_totalStawLP) { | |
326 | 326 | case t: Int => | |
327 | 327 | (t + stawPL) | |
328 | 328 | case _ => | |
329 | 329 | throw("failed to get global total stawpl") | |
330 | 330 | } | |
331 | 331 | if ((_newGlobalTotalStawPL == _newGlobalTotalStawPL)) | |
332 | 332 | then { | |
333 | 333 | let _newGlobaIndexCount = match _getRegistryEntryValue(_globalIndexCount) { | |
334 | 334 | case t: Int => | |
335 | 335 | (t + indexCount) | |
336 | 336 | case _ => | |
337 | 337 | throw("failed to get global index count") | |
338 | 338 | } | |
339 | 339 | if ((_newGlobaIndexCount == _newGlobaIndexCount)) | |
340 | 340 | then [_writeGlobalParam(_totalWavesRef, _newGlobalTotalWavesAmtRef), _writeGlobalParam(_totalStaw, _newGlobalTotalStawMinted), _writeGlobalParam(_totalStawLP, _newGlobalTotalStawPL), _writeGlobalParam(_globalIndexCount, _newGlobaIndexCount)] | |
341 | 341 | else throw("Strict value is not equal to itself.") | |
342 | 342 | } | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | else throw("Strict value is not equal to itself.") | |
346 | 346 | } | |
347 | 347 | else throw("Strict value is not equal to itself.") | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 | ||
351 | 351 | func _registerUserEntry (transactionID,userAddress,lockDuration,lockDurationInMili,lockIndex,wavesAmount,stawAmount,stawLPAmount,lockAtHeight,lockId,totalLocked,localIndexCount,leaseState) = { | |
352 | 352 | let _txIdKey = makeString([userAddress, transactionID, _txId], SEP) | |
353 | 353 | let _lockDurationKey = makeString([userAddress, transactionID, _lockDuration], SEP) | |
354 | 354 | let _lockIndexKey = makeString([userAddress, transactionID, _lockIndex], SEP) | |
355 | 355 | let _wavesAmountKey = makeString([userAddress, transactionID, _wavesAmount], SEP) | |
356 | 356 | let _stawAmountKey = makeString([userAddress, transactionID, _stawAmount], SEP) | |
357 | 357 | let _stawLPAmountKey = makeString([userAddress, transactionID, _stawLPAmount], SEP) | |
358 | 358 | let _lockAtHeightKey = makeString([userAddress, transactionID, _lockAtHeight], SEP) | |
359 | 359 | let _lockIdKey = makeString([userAddress, transactionID, _lockId], SEP) | |
360 | 360 | let _totalLockedKey = makeString([userAddress, _userTotalLocked], SEP) | |
361 | 361 | let _localLockIndexKey = makeString([userAddress, _userLocalIndexCount], SEP) | |
362 | 362 | let _lockPeriodInMiliSecKey = makeString([userAddress, transactionID, _lockPeriodInMiliSec], SEP) | |
363 | 363 | let _totalWavesClaimedKey = makeString([userAddress, transactionID, _totalWavesClaimed], SEP) | |
364 | 364 | let _userLeaseStateKey = makeString([userAddress, transactionID, _userLeaseState], SEP) | |
365 | 365 | let trxIdEntry = makeString(["%s", transactionID], SEP) | |
366 | 366 | let lockDurationEntry = makeString(["%d", toString(lockDuration)], SEP) | |
367 | 367 | let lockIndexEntry = makeString(["%d", toString(lockIndex)], SEP) | |
368 | 368 | let wavesAmountEntry = makeString(["%d", toString(wavesAmount)], SEP) | |
369 | 369 | let stawAmountEntry = makeString(["%d", toString(stawAmount)], SEP) | |
370 | 370 | let stawLPAmountEntry = makeString(["%d", toString(stawLPAmount)], SEP) | |
371 | 371 | let lockAtHeightEntry = makeString(["%d", toString(lockAtHeight)], SEP) | |
372 | 372 | let lockIdEntry = makeString(["%b", lockId], SEP) | |
373 | 373 | let totalLockedEntry = makeString(["%d", toString(totalLocked)], SEP) | |
374 | 374 | let userLocalIndexEntry = makeString(["%d", toString(localIndexCount)], SEP) | |
375 | 375 | let lockPeriodInMiliSecEntry = makeString(["%d", toString(lockDurationInMili)], SEP) | |
376 | 376 | let totalWavesClaimedEntry = makeString(["%d", toString(0)], SEP) | |
377 | 377 | let userLeaseStateEntry = makeString(["%s", leaseState], SEP) | |
378 | 378 | [_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 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func _stawMF (lockPeriod,collateralWaves) = { | |
383 | 383 | let _adjustedMr = _computeMr() | |
384 | 384 | let ret = (fraction(_unitDecimals, (_Dt * _adjustedMr._1), _Ppy(lockPeriod)) * collateralWaves) | |
385 | 385 | if ((size(_adjustedMr._2) == 0)) | |
386 | 386 | then $Tuple2(ret, nil) | |
387 | 387 | else $Tuple2(ret, _adjustedMr._2) | |
388 | 388 | } | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | func _emissionRateWaves (lockPeriod,collateral) = { | |
392 | 392 | let extensionFactor = fraction(lockPeriod, 15, 10) | |
393 | 393 | ((collateral / ((lockPeriod * extensionFactor) - lockPeriod)) * _Dt) | |
394 | 394 | } | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | func _incrTotalStawLP (amount) = { | |
398 | 398 | let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP") | |
399 | 399 | [_writeInt(_totalStawLP, (oldStawLP + amount))] | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | func _decrTotalStawLP (amount) = { | |
404 | 404 | let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP") | |
405 | 405 | [_writeInt(_totalStawLP, (oldStawLP - amount))] | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func _incrTotalWavesRef (amount) = { | |
410 | 410 | let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves") | |
411 | 411 | [_writeInt(_totalWavesRef, (oldWavesRef + amount))] | |
412 | 412 | } | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | func _decrTotalWavesRef (amount) = { | |
416 | 416 | let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves") | |
417 | 417 | [_writeInt(_totalWavesRef, (oldWavesRef - amount))] | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | func _getNewTimeStamp (blockHeight) = { | |
422 | 422 | let time = match blockInfoByHeight(blockHeight) { | |
423 | 423 | case timeInfo: BlockInfo => | |
424 | 424 | timeInfo.timestamp | |
425 | 425 | case _ => | |
426 | 426 | throw("counld get timestamp") | |
427 | 427 | } | |
428 | 428 | time | |
429 | 429 | } | |
430 | 430 | ||
431 | 431 | ||
432 | 432 | @Callable(i) | |
433 | 433 | func getEmission (lockPeriod,collateral) = { | |
434 | 434 | let check1 = _onlyManager(i) | |
435 | 435 | if ((check1 == check1)) | |
436 | 436 | then $Tuple2(nil, _emissionRateWaves(lockPeriod, collateral)) | |
437 | 437 | else throw("Strict value is not equal to itself.") | |
438 | 438 | } | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | ||
442 | 442 | @Callable(i) | |
443 | 443 | func init (manager,dfx,assetID,leaseNode) = { | |
444 | 444 | let managerAlreadyExists = if (isDefined(_getS(_manager))) | |
445 | 445 | then _onlyManager(i) | |
446 | 446 | else true | |
447 | 447 | if ((managerAlreadyExists == managerAlreadyExists)) | |
448 | 448 | then { | |
449 | 449 | let check1 = _validateAddress(manager) | |
450 | 450 | if ((check1 == check1)) | |
451 | 451 | then { | |
452 | 452 | let check2 = _validateAddress(dfx) | |
453 | 453 | if ((check2 == check2)) | |
454 | 454 | then { | |
455 | 455 | let check3 = _validateAddress(leaseNode) | |
456 | 456 | if ((check3 == check3)) | |
457 | 457 | then { | |
458 | 458 | let check4 = _validateAsset(assetID) | |
459 | 459 | if ((check4 == check4)) | |
460 | 460 | then { | |
461 | 461 | let circulationIndex = _setParamVal(_circulationIncrIndex, 0) | |
462 | 462 | let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0) | |
463 | 463 | let Mr = _setParamVal(_Mr, _unitDecimals) | |
464 | 464 | let totalStawMinted = _setParamVal(_totalStaw, 0) | |
465 | 465 | let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0) | |
466 | 466 | let globalIndexCount = _setParamVal(_globalIndexCount, 0) | |
467 | 467 | let totalWavesRef = _setParamVal(_totalWavesRef, 0) | |
468 | 468 | [_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)] | |
469 | 469 | } | |
470 | 470 | else throw("Strict value is not equal to itself.") | |
471 | 471 | } | |
472 | 472 | else throw("Strict value is not equal to itself.") | |
473 | 473 | } | |
474 | 474 | else throw("Strict value is not equal to itself.") | |
475 | 475 | } | |
476 | 476 | else throw("Strict value is not equal to itself.") | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | ||
483 | 483 | @Callable(i) | |
484 | 484 | func modifyGlobalParams (val) = { | |
485 | 485 | let check1 = _onlyManager(i) | |
486 | 486 | if ((check1 == check1)) | |
487 | 487 | then { | |
488 | - | let errorMsg = makeString(["got", toString(size(val)), " | |
489 | - | let check2 = _throwIf((size(val) | |
488 | + | let errorMsg = makeString(["got", "list size of", toString(size(val)), "but expected [global_key, value] pair"], " ") | |
489 | + | let check2 = _throwIf((size(val) != 2), errorMsg) | |
490 | 490 | if ((check2 == check2)) | |
491 | 491 | then { | |
492 | 492 | let key = val[0] | |
493 | 493 | let valType = parseInt(val[1]) | |
494 | 494 | match valType { | |
495 | 495 | case x: Int => | |
496 | 496 | let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized")) | |
497 | 497 | if ((validateKey == validateKey)) | |
498 | 498 | then [_writeGlobalParam(key, x)] | |
499 | 499 | else throw("Strict value is not equal to itself.") | |
500 | 500 | case x: Unit => | |
501 | 501 | let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized")) | |
502 | 502 | if ((validateKey == validateKey)) | |
503 | 503 | then { | |
504 | 504 | let stringValue = val[1] | |
505 | 505 | let refAddress = _getRegistryEntryValue(_manager) | |
506 | 506 | let check4 = match refAddress { | |
507 | 507 | case strType: String => | |
508 | 508 | if ((size(strType) == size(stringValue))) | |
509 | 509 | then _validateAddress(stringValue) | |
510 | 510 | else _validateAsset(stringValue) | |
511 | 511 | case _ => | |
512 | 512 | throw("value type not supported") | |
513 | 513 | } | |
514 | 514 | if ((check4 == check4)) | |
515 | 515 | then [_writeGlobalParam(key, stringValue)] | |
516 | 516 | else throw("Strict value is not equal to itself.") | |
517 | 517 | } | |
518 | 518 | else throw("Strict value is not equal to itself.") | |
519 | 519 | case _ => | |
520 | 520 | throw(("failed to modify " + val[0])) | |
521 | 521 | } | |
522 | 522 | } | |
523 | 523 | else throw("Strict value is not equal to itself.") | |
524 | 524 | } | |
525 | 525 | else throw("Strict value is not equal to itself.") | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(i) | |
531 | 531 | func revokeLock () = { | |
532 | 532 | let check1 = _onlyManager(i) | |
533 | 533 | if ((check1 == check1)) | |
534 | 534 | then nil | |
535 | 535 | else throw("Strict value is not equal to itself.") | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | ||
540 | 540 | @Callable(i) | |
541 | 541 | func claim (transactionID) = { | |
542 | 542 | let callerAddress = toBase58String(i.caller.bytes) | |
543 | 543 | let collateralKey = makeString([callerAddress, transactionID, _wavesAmount], SEP) | |
544 | 544 | let lockperiodKey = makeString([callerAddress, transactionID, _lockDuration], SEP) | |
545 | 545 | let lockIdKey = makeString([callerAddress, transactionID, _lockId], SEP) | |
546 | 546 | let lockperiodInMiliKey = makeString([callerAddress, transactionID, _lockPeriodInMiliSec], SEP) | |
547 | 547 | let totalWavesClaimedKey = makeString([callerAddress, transactionID, _totalWavesClaimed], SEP) | |
548 | 548 | let stawLPAmountKey = makeString([callerAddress, transactionID, _stawLPAmount], SEP) | |
549 | 549 | let wavesAmountKey = makeString([callerAddress, transactionID, _wavesAmount], SEP) | |
550 | 550 | let userTotalWavesLockedKey = makeString([callerAddress, _userTotalLocked], SEP) | |
551 | 551 | let userLeaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP) | |
552 | 552 | let leaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP) | |
553 | 553 | let globalWavesRef = match _getRegistryEntryValue(_totalWavesRef) { | |
554 | 554 | case t: Int => | |
555 | 555 | t | |
556 | 556 | case _ => | |
557 | 557 | throw("failed to get global total waves") | |
558 | 558 | } | |
559 | 559 | if ((globalWavesRef == globalWavesRef)) | |
560 | 560 | then { | |
561 | 561 | let globalStawPL = match _getRegistryEntryValue(_totalStawLP) { | |
562 | 562 | case t: Int => | |
563 | 563 | t | |
564 | 564 | case _ => | |
565 | 565 | throw("failed to get global total waves") | |
566 | 566 | } | |
567 | 567 | if ((globalStawPL == globalStawPL)) | |
568 | 568 | then { | |
569 | 569 | let lockId = match _getRegistryEntryValue(lockIdKey) { | |
570 | 570 | case t: ByteVector => | |
571 | 571 | t | |
572 | 572 | case _ => | |
573 | 573 | throw("failed to get lease id") | |
574 | 574 | } | |
575 | 575 | if ((lockId == lockId)) | |
576 | 576 | then { | |
577 | 577 | let userTotalWavesLocked = match _getRegistryEntryValue(userTotalWavesLockedKey) { | |
578 | 578 | case t: Int => | |
579 | 579 | t | |
580 | 580 | case _ => | |
581 | 581 | throw("failed to get total waves locked by this address") | |
582 | 582 | } | |
583 | 583 | if ((userTotalWavesLocked == userTotalWavesLocked)) | |
584 | 584 | then { | |
585 | 585 | let wavesAmount = match _getRegistryEntryValue(wavesAmountKey) { | |
586 | 586 | case t: Int => | |
587 | 587 | t | |
588 | 588 | case _ => | |
589 | 589 | throw("failed to get total waves locked") | |
590 | 590 | } | |
591 | 591 | if ((wavesAmount == wavesAmount)) | |
592 | 592 | then { | |
593 | 593 | let totalWavesClaimed = match _getRegistryEntryValue(totalWavesClaimedKey) { | |
594 | 594 | case t: Int => | |
595 | 595 | t | |
596 | 596 | case _ => | |
597 | 597 | throw("failed to get total waves claimed") | |
598 | 598 | } | |
599 | 599 | if ((totalWavesClaimed == totalWavesClaimed)) | |
600 | 600 | then { | |
601 | 601 | let stawLPAmount = match _getRegistryEntryValue(stawLPAmountKey) { | |
602 | 602 | case t: Int => | |
603 | 603 | t | |
604 | 604 | case _ => | |
605 | 605 | throw("failed to get stawPL") | |
606 | 606 | } | |
607 | 607 | if ((stawLPAmount == stawLPAmount)) | |
608 | 608 | then { | |
609 | 609 | let lockPeriodInMili = match _getRegistryEntryValue(lockperiodInMiliKey) { | |
610 | 610 | case t: Int => | |
611 | 611 | t | |
612 | 612 | case _ => | |
613 | 613 | throw("failed to get lock period timespam") | |
614 | 614 | } | |
615 | 615 | if ((lockPeriodInMili == lockPeriodInMili)) | |
616 | 616 | then { | |
617 | 617 | let currentTimeStamp = match _getNewTimeStamp(height) { | |
618 | 618 | case t: Int => | |
619 | 619 | t | |
620 | 620 | case _ => | |
621 | 621 | throw("failed to get current timestamp") | |
622 | 622 | } | |
623 | 623 | if ((currentTimeStamp == currentTimeStamp)) | |
624 | 624 | then { | |
625 | 625 | let collateral = match _getRegistryEntryValue(collateralKey) { | |
626 | 626 | case t: Int => | |
627 | 627 | t | |
628 | 628 | case _ => | |
629 | 629 | throw("failed to get collateral") | |
630 | 630 | } | |
631 | 631 | if ((collateral == collateral)) | |
632 | 632 | then { | |
633 | 633 | let lockPeriod = match _getRegistryEntryValue(lockperiodKey) { | |
634 | 634 | case t: Int => | |
635 | 635 | t | |
636 | 636 | case _ => | |
637 | 637 | throw("failed to get lockPeriod") | |
638 | 638 | } | |
639 | 639 | if ((lockPeriod == lockPeriod)) | |
640 | 640 | then { | |
641 | 641 | let currentLeaseState = match _getRegistryEntryValue(userLeaseStateKey) { | |
642 | 642 | case t: String => | |
643 | 643 | t | |
644 | 644 | case _ => | |
645 | 645 | throw("failed to get lease state") | |
646 | 646 | } | |
647 | 647 | if ((currentLeaseState == currentLeaseState)) | |
648 | 648 | then { | |
649 | 649 | let leaseState = match _getRegistryEntryValue(leaseStateKey) { | |
650 | 650 | case t: String => | |
651 | 651 | t | |
652 | 652 | case _ => | |
653 | 653 | throw("failed to get lease state for user") | |
654 | 654 | } | |
655 | 655 | if ((leaseState == leaseState)) | |
656 | 656 | then { | |
657 | 657 | let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed") | |
658 | 658 | if ((check1 == check1)) | |
659 | 659 | then { | |
660 | 660 | let leaseAction = if ((currentLeaseState == "leased")) | |
661 | 661 | then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled")) | |
662 | 662 | else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled")) | |
663 | 663 | if ((leaseAction == leaseAction)) | |
664 | 664 | then { | |
665 | 665 | let check2 = _throwIf(if ((0 == wavesAmount)) | |
666 | 666 | then true | |
667 | 667 | else (0 == stawLPAmount), "all claims exhausted for this trx") | |
668 | 668 | if ((check2 == check2)) | |
669 | 669 | then { | |
670 | 670 | let emissionValuePerDT = (_emissionRateWaves(lockPeriod, collateral) * _Dt) | |
671 | 671 | let claimAction = { | |
672 | 672 | let timeStampDiff = (currentTimeStamp - lockPeriodInMili) | |
673 | 673 | let daysAfterLockPeriodElasped = (timeStampDiff / _Dt) | |
674 | 674 | if ((daysAfterLockPeriodElasped == 0)) | |
675 | 675 | then throw("less than 24hrs before first claim") | |
676 | 676 | else if (((timeStampDiff % _Dt) != 0)) | |
677 | 677 | then throw("already claimed or less than 24hrs before next claim") | |
678 | 678 | else if ((daysAfterLockPeriodElasped > lockPeriod)) | |
679 | 679 | then throw("all claims exhausted") | |
680 | 680 | else { | |
681 | 681 | let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT) | |
682 | 682 | let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs") | |
683 | 683 | if ((check3_1 == check3_1)) | |
684 | 684 | then { | |
685 | 685 | let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted") | |
686 | 686 | if ((check3_2 == check3_2)) | |
687 | 687 | then { | |
688 | 688 | let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1)) | |
689 | 689 | then totalAmountClaimable | |
690 | 690 | else (totalAmountClaimable - totalWavesClaimed) | |
691 | 691 | let newTotalWavesClaim = totalAmountClaimable | |
692 | 692 | let newWavesAmount = if ((daysAfterLockPeriodElasped == 1)) | |
693 | 693 | then (wavesAmount - totalAmountClaimable) | |
694 | 694 | else (wavesAmount - (totalAmountClaimable - totalWavesClaimed)) | |
695 | 695 | let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1)) | |
696 | 696 | then (stawLPAmount - totalAmountClaimable) | |
697 | 697 | else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed)) | |
698 | 698 | let newGlobalWaveRef = (globalWavesRef - newWavesAmount) | |
699 | 699 | let newGlobalStawPL = (globalStawPL - newStawLPAmount) | |
700 | 700 | let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend) | |
701 | 701 | let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP) | |
702 | 702 | let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP) | |
703 | 703 | let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP) | |
704 | 704 | let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP) | |
705 | 705 | [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)] | |
706 | 706 | } | |
707 | 707 | else throw("Strict value is not equal to itself.") | |
708 | 708 | } | |
709 | 709 | else throw("Strict value is not equal to itself.") | |
710 | 710 | } | |
711 | 711 | } | |
712 | 712 | if ((claimAction == claimAction)) | |
713 | 713 | then claimAction | |
714 | 714 | else throw("Strict value is not equal to itself.") | |
715 | 715 | } | |
716 | 716 | else throw("Strict value is not equal to itself.") | |
717 | 717 | } | |
718 | 718 | else throw("Strict value is not equal to itself.") | |
719 | 719 | } | |
720 | 720 | else throw("Strict value is not equal to itself.") | |
721 | 721 | } | |
722 | 722 | else throw("Strict value is not equal to itself.") | |
723 | 723 | } | |
724 | 724 | else throw("Strict value is not equal to itself.") | |
725 | 725 | } | |
726 | 726 | else throw("Strict value is not equal to itself.") | |
727 | 727 | } | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | else throw("Strict value is not equal to itself.") | |
731 | 731 | } | |
732 | 732 | else throw("Strict value is not equal to itself.") | |
733 | 733 | } | |
734 | 734 | else throw("Strict value is not equal to itself.") | |
735 | 735 | } | |
736 | 736 | else throw("Strict value is not equal to itself.") | |
737 | 737 | } | |
738 | 738 | else throw("Strict value is not equal to itself.") | |
739 | 739 | } | |
740 | 740 | else throw("Strict value is not equal to itself.") | |
741 | 741 | } | |
742 | 742 | else throw("Strict value is not equal to itself.") | |
743 | 743 | } | |
744 | 744 | else throw("Strict value is not equal to itself.") | |
745 | 745 | } | |
746 | 746 | else throw("Strict value is not equal to itself.") | |
747 | 747 | } | |
748 | 748 | ||
749 | 749 | ||
750 | 750 | ||
751 | 751 | @Callable(i) | |
752 | 752 | func mintStaw (lockPeriod) = { | |
753 | 753 | let callerAddress = toBase58String(i.caller.bytes) | |
754 | 754 | let trxID = toBase58String(i.transactionId) | |
755 | 755 | let check1 = _throwIf((1 != size(i.payments)), "no payments attached") | |
756 | 756 | if ((check1 == check1)) | |
757 | 757 | then { | |
758 | 758 | let check2 = if (isDefined(i.payments[0].assetId)) | |
759 | 759 | then throw("only waves supported") | |
760 | 760 | else true | |
761 | 761 | if ((check2 == check2)) | |
762 | 762 | then { | |
763 | 763 | let amountInWaves = i.payments[0].amount | |
764 | 764 | let check3 = if (if ((_minLockAmount > amountInWaves)) | |
765 | 765 | then true | |
766 | 766 | else (amountInWaves > _maxLockAmount)) | |
767 | 767 | then throw("lock amount out of range, minimum: 1 waves, maximum: 1000 waves") | |
768 | 768 | else true | |
769 | 769 | if ((check3 == check3)) | |
770 | 770 | then { | |
771 | 771 | let check4 = if ((_minLockperiod > lockPeriod)) | |
772 | 772 | then throw("minimum of 14 days lock period") | |
773 | 773 | else true | |
774 | 774 | if ((check4 == check4)) | |
775 | 775 | then { | |
776 | 776 | let totalStawMint = _stawMF(lockPeriod, amountInWaves) | |
777 | 777 | let stawPL = amountInWaves | |
778 | 778 | let fee = fraction(totalStawMint._1, 10, 100) | |
779 | 779 | let userGetStawAmount = (totalStawMint._1 - fee) | |
780 | 780 | let lockPeriodToMilisec = (_getNewTimeStamp(height) + _daysToMiliSec(lockPeriod)) | |
781 | 781 | if ((lockPeriodToMilisec == lockPeriodToMilisec)) | |
782 | 782 | then { | |
783 | 783 | let new_index = match _getRegistryEntryValue(_globalIndexCount) { | |
784 | 784 | case t: Int => | |
785 | 785 | (t + 1) | |
786 | 786 | case _ => | |
787 | 787 | throw("failed to get current global index count") | |
788 | 788 | } | |
789 | 789 | if ((new_index == new_index)) | |
790 | 790 | then { | |
791 | 791 | let addressFee = match _getRegistryEntryValue(_Dfx) { | |
792 | 792 | case t: String => | |
793 | 793 | Address(fromBase58String(t)) | |
794 | 794 | case _ => | |
795 | 795 | throw("failed to get dfx address") | |
796 | 796 | } | |
797 | 797 | if ((addressFee == addressFee)) | |
798 | 798 | then { | |
799 | 799 | let stawAssetId = match _getRegistryEntryValue(_stawAssetId) { | |
800 | 800 | case t: String => | |
801 | 801 | fromBase58String(t) | |
802 | 802 | case _ => | |
803 | 803 | throw("failed to get asset id") | |
804 | 804 | } | |
805 | 805 | if ((stawAssetId == stawAssetId)) | |
806 | 806 | then { | |
807 | 807 | let lessee = match _getRegistryEntryValue(_lesseeAddress) { | |
808 | 808 | case t: String => | |
809 | 809 | Address(fromBase58String(t)) | |
810 | 810 | case _ => | |
811 | 811 | throw("failed to get lease node address") | |
812 | 812 | } | |
813 | 813 | if ((lessee == lessee)) | |
814 | 814 | then { | |
815 | 815 | let userLockIndexKey = makeString([callerAddress, _userLocalIndexCount], SEP) | |
816 | 816 | let userTotalLockedKey = makeString([callerAddress, _userTotalLocked], SEP) | |
817 | 817 | let userIndexCount = match _getRegistryEntryValue(userLockIndexKey) { | |
818 | 818 | case x: Int => | |
819 | 819 | (x + 1) | |
820 | 820 | case _ => | |
821 | 821 | 0 | |
822 | 822 | } | |
823 | 823 | if ((userIndexCount == userIndexCount)) | |
824 | 824 | then { | |
825 | 825 | let userTotalLocked = match _getRegistryEntryValue(userTotalLockedKey) { | |
826 | 826 | case x: Int => | |
827 | 827 | (x + amountInWaves) | |
828 | 828 | case _ => | |
829 | 829 | amountInWaves | |
830 | 830 | } | |
831 | 831 | if ((userTotalLocked == userTotalLocked)) | |
832 | 832 | then { | |
833 | 833 | let leaseOut = Lease(lessee, amountInWaves) | |
834 | 834 | if ((leaseOut == leaseOut)) | |
835 | 835 | then { | |
836 | 836 | let leaseIdStr = toBase58String(calculateLeaseId(leaseOut)) | |
837 | 837 | if ((leaseIdStr == leaseIdStr)) | |
838 | 838 | 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._1, stawPL, new_index)) ++ totalStawMint._2) | |
839 | 839 | else throw("Strict value is not equal to itself.") | |
840 | 840 | } | |
841 | 841 | else throw("Strict value is not equal to itself.") | |
842 | 842 | } | |
843 | 843 | else throw("Strict value is not equal to itself.") | |
844 | 844 | } | |
845 | 845 | else throw("Strict value is not equal to itself.") | |
846 | 846 | } | |
847 | 847 | else throw("Strict value is not equal to itself.") | |
848 | 848 | } | |
849 | 849 | else throw("Strict value is not equal to itself.") | |
850 | 850 | } | |
851 | 851 | else throw("Strict value is not equal to itself.") | |
852 | 852 | } | |
853 | 853 | else throw("Strict value is not equal to itself.") | |
854 | 854 | } | |
855 | 855 | else throw("Strict value is not equal to itself.") | |
856 | 856 | } | |
857 | 857 | else throw("Strict value is not equal to itself.") | |
858 | 858 | } | |
859 | 859 | else throw("Strict value is not equal to itself.") | |
860 | 860 | } | |
861 | 861 | else throw("Strict value is not equal to itself.") | |
862 | 862 | } | |
863 | 863 | else throw("Strict value is not equal to itself.") | |
864 | 864 | } | |
865 | 865 | ||
866 | 866 |
github/deemru/w8io/169f3d6 99.94 ms ◑