tx · BrD3yKLCRSTm1M2QvaYNxdP5oXiDN4K79ZVw6yghUNrx

3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH:  -0.02300000 Waves

2023.03.14 23:47 [2490219] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves

{ "type": 13, "id": "BrD3yKLCRSTm1M2QvaYNxdP5oXiDN4K79ZVw6yghUNrx", "fee": 2300000, "feeAssetId": null, "timestamp": 1678826875132, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "2bAPLWJbAcJgtnGxudWKZ7UWV5FfVXAhacvjUAoB5R2a52D8YzZZRKFGNXKsHQLLw2kJVAfnsahPHP87sTkt7mDY" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRAADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX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VxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AJxJXkQ==", "height": 2490219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CEAU4AETXpN3kKocb6qY3BTECyLTM9JC17jHvzNbSvhf Next: 3F7vGhAhryCexmY6UEx2JvptGAn2849TUBDXxUjqV8Az Diff:
OldNewDifferences
217217 }
218218
219219
220+func _validateAsset (assetID) = match assetInfo(fromBase58String(assetID)) {
221+ case asset: Asset =>
222+ true
223+ case _ =>
224+ throw(("invalid asset id: " + assetID))
225+}
226+
227+
220228 func _computeMr () = {
221229 let currentCircIndex = _throwOrReturnI(_getI(_circulationIncrIndex), "increment index not previously defined")
222230 if ((currentCircIndex == currentCircIndex))
395403 let check3 = _validateAddress(leaseNode)
396404 if ((check3 == check3))
397405 then {
398- let circulationIndex = _setParamVal(_circulationIncrIndex, 0)
399- let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0)
400- let Mr = _setParamVal(_Mr, _unitDecimals)
401- let totalStawMinted = _setParamVal(_totalStaw, 0)
402- let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0)
403- let globalIndexCount = _setParamVal(_globalIndexCount, 0)
404- let totalWavesRef = _setParamVal(_totalWavesRef, 0)
406+ let check4 = _validateAsset(assetID)
407+ if ((check4 == check4))
408+ then {
409+ let circulationIndex = _setParamVal(_circulationIncrIndex, 0)
410+ let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0)
411+ let Mr = _setParamVal(_Mr, _unitDecimals)
412+ let totalStawMinted = _setParamVal(_totalStaw, 0)
413+ let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0)
414+ let globalIndexCount = _setParamVal(_globalIndexCount, 0)
415+ let totalWavesRef = _setParamVal(_totalWavesRef, 0)
405416 [_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)]
417+ }
418+ else throw("Strict value is not equal to itself.")
406419 }
407420 else throw("Strict value is not equal to itself.")
408421 }
435448 let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
436449 if ((validateKey == validateKey))
437450 then {
438- let validateAddress = _validateAddress(val[1])
439- if ((validateAddress == validateAddress))
440- then [_writeGlobalParam(key, val[1])]
451+ let stringValue = val[1]
452+ let refAddress = _getRegistryEntryValue("_manager")
453+ let check4 = match refAddress {
454+ case strType: String =>
455+ if ((size(strType) == size(stringValue)))
456+ then _validateAddress(stringValue)
457+ else _validateAsset(stringValue)
458+ case _ =>
459+ throw("value type not supported")
460+ }
461+ if ((check4 == check4))
462+ then [_writeGlobalParam(key, stringValue)]
441463 else throw("Strict value is not equal to itself.")
442464 }
443465 else throw("Strict value is not equal to itself.")
444466 case _ =>
445- $Tuple2(nil, true)
467+ throw(("failed to modify " + val[0]))
446468 }
447469 }
448470 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "_"
55
66 let _minLockperiod = 1
77
88 let _unitDecimals = 100000000
99
1010 let _minLockAmount = (1 * _unitDecimals)
1111
1212 let _maxLockAmount = (1000 * _unitDecimals)
1313
1414 let _Dt = 86400000
1515
1616 func _Ppy (lockPeriod) = fraction(_unitDecimals, 365, lockPeriod)
1717
1818
1919 let _incrementRef = (1000000 * _unitDecimals)
2020
2121 let _percentageFee = fraction(_unitDecimals, 10, 100)
2222
2323 let _percentageReductionFactor = "Current_PercentageReduction_Factor_For_Mr"
2424
2525 let _Mr = "Minting_Rate"
2626
2727 let _stawAssetId = "Staw_AssetId"
2828
2929 let _manager = "manager"
3030
3131 let _Dfx = "Dfx"
3232
3333 let _circulationIncrIndex = "CirculationIncrementIndex"
3434
3535 let _lesseeAddress = "LeaseNode"
3636
3737 let _userEmissionAmountClaimed = "EmissionAmountClaimed"
3838
3939 let _userCanClaimEmissionAmount = "CanClaimEmissionAmount"
4040
4141 let _userAddress = "WalletAddress"
4242
4343 let _userLocalIndexCount = "TotalEntryIndexCount"
4444
4545 let _userTotalLocked = "TotalLocked"
4646
4747 let _lockDuration = "LockDuration"
4848
4949 let _lockIndex = "GlobalLockIndex"
5050
5151 let _lockId = "LockIdentifier"
5252
5353 let _wavesAmount = "AmountInWaves"
5454
5555 let _stawAmount = "AmountInStaw"
5656
5757 let _stawLPAmount = "AmountInStawLP"
5858
5959 let _txId = "TXID"
6060
6161 let _lockAtHeight = "LockAtHeight"
6262
6363 let _lockPeriodInMiliSec = "LocKPeriodInMilliSec"
6464
6565 let _totalWavesClaimed = "TotalWavesClaimed"
6666
6767 let _userLeaseState = "LeaseState"
6868
6969 let _totalStaw = "TotalStawMinted"
7070
7171 let _totalWavesRef = "TotalWavesLocked"
7272
7373 let _totalStawLP = "TotalStawLP"
7474
7575 let _globalIndexCount = "IndexCount"
7676
7777 func _getI (key) = getInteger(this, key)
7878
7979
8080 func _getS (key) = getString(this, key)
8181
8282
8383 func _getB (key) = getBoolean(this, key)
8484
8585
8686 func _getBV (key) = value(getBoolean(this, key))
8787
8888
8989 func _getIV (key) = value(getInteger(this, key))
9090
9191
9292 func _getSV (key) = value(getString(this, key))
9393
9494
9595 func _setParamVal (key,defaultVal) = match defaultVal {
9696 case defaultVal: String =>
9797 if (isDefined(_getS(key)))
9898 then _getSV(key)
9999 else defaultVal
100100 case defaultVal: Int =>
101101 if (isDefined(_getI(key)))
102102 then _getIV(key)
103103 else defaultVal
104104 case defaultVal: Boolean =>
105105 if (isDefined(_getB(key)))
106106 then _getBV(key)
107107 else defaultVal
108108 case _ =>
109109 throw(("value type not supported for " + key))
110110 }
111111
112112
113113 func _throwOrReturnS (val,error) = match val {
114114 case val: String =>
115115 val
116116 case _ =>
117117 throw(error)
118118 }
119119
120120
121121 func _throwOrReturnI (val,error) = match val {
122122 case val: Int =>
123123 val
124124 case _ =>
125125 throw(error)
126126 }
127127
128128
129129 func _throwOrReturnBool (val,error) = match val {
130130 case val: Boolean =>
131131 val
132132 case _ =>
133133 throw(error)
134134 }
135135
136136
137137 func _writeInt (key,value) = if ((0 > value))
138138 then throw(((("writing negative value " + toString(value)) + " for key ") + key))
139139 else IntegerEntry(key, value)
140140
141141
142142 func _writeStr (key,value) = if ((" " == value))
143143 then throw(("writing an empty string " + value))
144144 else StringEntry(key, value)
145145
146146
147147 func _throwIf (condition,error) = if (condition)
148148 then throw(error)
149149 else true
150150
151151
152152 func _writeGlobalParam (key,_value) = match _value {
153153 case _value: Int =>
154154 let entry = makeString(["%d", toString(_value)], SEP)
155155 _writeStr(key, entry)
156156 case _value: String =>
157157 let entry = makeString(["%s", _value], SEP)
158158 _writeStr(key, entry)
159159 case _value: Boolean =>
160160 let entry = makeString(["%b", toString(_value)], SEP)
161161 _writeStr(key, entry)
162162 case _ =>
163163 throw("type not supported")
164164 }
165165
166166
167167 func _daysToMiliSec (days) = {
168168 let check = _throwIf((days >= 0), "invalid locking days!")
169169 if ((check == check))
170170 then (days * _Dt)
171171 else throw("Strict value is not equal to itself.")
172172 }
173173
174174
175175 func _writeConstString (key,value) = if (!(isDefined(_getS(key))))
176176 then _writeStr(key, value)
177177 else throw(("entry already initialized: " + key))
178178
179179
180180 func _writeConstInteger (key,value) = if (!(isDefined(_getS(key))))
181181 then _writeInt(key, value)
182182 else throw((" entry already initialized: " + key))
183183
184184
185185 func _onlyManager (i) = {
186186 let manager = _throwOrReturnS(_getS(_manager), "manager not found")
187187 if ((manager == manager))
188188 then _throwIf((toBase58String(i.caller.bytes) != manager), "address not authorized")
189189 else throw("Strict value is not equal to itself.")
190190 }
191191
192192
193193 func _abs (val) = if ((0 > val))
194194 then -(val)
195195 else val
196196
197197
198198 func _validateAddress (address) = match address {
199199 case address: String =>
200200 let _address = addressFromString(address)
201201 match _address {
202202 case _address: Address =>
203203 true
204204 case _ =>
205205 throw("invalid address")
206206 }
207207 case address: ByteVector =>
208208 let _address = addressFromPublicKey(address)
209209 match _address {
210210 case _address: Address =>
211211 true
212212 case _ =>
213213 throw("invalid public key")
214214 }
215215 case _ =>
216216 throw("invalid input type")
217217 }
218218
219219
220+func _validateAsset (assetID) = match assetInfo(fromBase58String(assetID)) {
221+ case asset: Asset =>
222+ true
223+ case _ =>
224+ throw(("invalid asset id: " + assetID))
225+}
226+
227+
220228 func _computeMr () = {
221229 let currentCircIndex = _throwOrReturnI(_getI(_circulationIncrIndex), "increment index not previously defined")
222230 if ((currentCircIndex == currentCircIndex))
223231 then {
224232 let stawAssetId = _throwOrReturnS(_getS(_stawAssetId), "asset id not previouly defined")
225233 if ((stawAssetId == stawAssetId))
226234 then {
227235 let stawCirculatingSupply = match assetInfo(fromBase58String(stawAssetId)) {
228236 case asset: Asset =>
229237 asset.quantity
230238 case _ =>
231239 throw(("asset not found for " + stawAssetId))
232240 }
233241 let unitIncrement = (_abs((stawCirculatingSupply - _incrementRef)) / _incrementRef)
234242 let newCirculationIncrIndex = if ((unitIncrement > currentCircIndex))
235243 then (unitIncrement + currentCircIndex)
236244 else currentCircIndex
237245 let currentMr = _throwOrReturnI(_Mr, "miniting rate not previously defined")
238246 if ((newCirculationIncrIndex == currentCircIndex))
239247 then currentMr
240248 else {
241249 let newreductionFactor = (_throwOrReturnI(_percentageReductionFactor, "reduction factor not previously defined") + 10)
242250 let newCurrentMr = (currentMr - fraction(currentMr, newreductionFactor, 100))
243251 let store1 = _writeInt(_Mr, newCurrentMr)
244252 if ((store1 == store1))
245253 then {
246254 let store2 = _writeInt(_percentageReductionFactor, newreductionFactor)
247255 if ((store2 == store2))
248256 then {
249257 let store3 = _writeInt(_circulationIncrIndex, newCirculationIncrIndex)
250258 if ((store3 == store3))
251259 then newCurrentMr
252260 else throw("Strict value is not equal to itself.")
253261 }
254262 else throw("Strict value is not equal to itself.")
255263 }
256264 else throw("Strict value is not equal to itself.")
257265 }
258266 }
259267 else throw("Strict value is not equal to itself.")
260268 }
261269 else throw("Strict value is not equal to itself.")
262270 }
263271
264272
265273 func _getRegistryEntryValue (key) = {
266274 let _rawValue = _throwOrReturnS(_getS(key), "entry not found")
267275 if ((_rawValue == _rawValue))
268276 then {
269277 let x = split(_rawValue, SEP)
270278 let formatSpecifier = takeRight(x[0], 1)
271279 let _valueString = x[(size(x) - 1)]
272280 let _value = if ((formatSpecifier == "s"))
273281 then _valueString
274282 else if ((formatSpecifier == "d"))
275283 then parseIntValue(_valueString)
276284 else if ((formatSpecifier == "b"))
277285 then fromBase58String(_valueString)
278286 else throw(("could not parse registry value for " + key))
279287 _value
280288 }
281289 else throw("Strict value is not equal to itself.")
282290 }
283291
284292
285293 func _updateGlobalEntry (wavesAmount,stawAmount,stawPL,indexCount) = {
286294 let _newGlobalTotalWavesAmtRef = (_throwOrReturnI(_getI(_totalWavesRef), "global waves sum not previously defined") + wavesAmount)
287295 let _newGlobalTotalStawMinted = (_throwOrReturnI(_getI(_totalStaw), "gobal staw minted not previously defined") + stawAmount)
288296 let _newGlobalTotalStawPL = (_throwOrReturnI(_getI(_totalStawLP), "global stawPL not previously defined") + stawPL)
289297 let _newGlobaIndexCount = (_throwOrReturnI(_getI(_globalIndexCount), "global index count not previously defined") + indexCount)
290298 [_writeInt(_totalWavesRef, _newGlobalTotalWavesAmtRef), _writeInt(_totalStaw, _newGlobalTotalStawMinted), _writeInt(_totalStawLP, _newGlobalTotalStawPL), _writeInt(_globalIndexCount, _newGlobaIndexCount)]
291299 }
292300
293301
294302 func _registerUserEntry (transactionID,userAddress,lockDuration,lockDurationInMili,lockIndex,wavesAmount,stawAmount,stawLPAmount,lockAtHeight,lockId,totalLocked,localIndexCount,leaseState) = {
295303 let _txIdKey = makeString([userAddress, transactionID, _txId], SEP)
296304 let _lockDurationKey = makeString([userAddress, transactionID, _lockDuration], SEP)
297305 let _lockIndexKey = makeString([userAddress, transactionID, _lockIndex], SEP)
298306 let _wavesAmountKey = makeString([userAddress, transactionID, _wavesAmount], SEP)
299307 let _stawAmountKey = makeString([userAddress, transactionID, _stawAmount], SEP)
300308 let _stawLPAmountKey = makeString([userAddress, transactionID, _stawLPAmount], SEP)
301309 let _lockAtHeightKey = makeString([userAddress, transactionID, _lockAtHeight], SEP)
302310 let _lockIdKey = makeString([userAddress, transactionID, _lockId], SEP)
303311 let _totalLockedKey = makeString([userAddress, _userTotalLocked], SEP)
304312 let _localLockIndexKey = makeString([userAddress, _userLocalIndexCount], SEP)
305313 let _lockPeriodInMiliSecKey = makeString([userAddress, transactionID, _lockPeriodInMiliSec], SEP)
306314 let _totalWavesClaimedKey = makeString([userAddress, transactionID, _totalWavesClaimed], SEP)
307315 let _userLeaseStateKey = makeString([userAddress, transactionID, _userLeaseState], SEP)
308316 let trxIdEntry = makeString(["%s", transactionID], SEP)
309317 let lockDurationEntry = makeString(["%d", toString(lockDuration)], SEP)
310318 let lockIndexEntry = makeString(["%d", toString(lockIndex)], SEP)
311319 let wavesAmountEntry = makeString(["%d", toString(wavesAmount)], SEP)
312320 let stawAmountEntry = makeString(["%d", toString(stawAmount)], SEP)
313321 let stawLPAmountEntry = makeString(["%d", toString(stawLPAmount)], SEP)
314322 let lockAtHeightEntry = makeString(["%d", toString(lockAtHeight)], SEP)
315323 let lockIdEntry = makeString(["%b", lockId], SEP)
316324 let totalLockedEntry = makeString(["%d", toString(totalLocked)], SEP)
317325 let userLocalIndexEntry = makeString(["%d", toString(localIndexCount)], SEP)
318326 let lockPeriodInMiliSecEntry = makeString(["%d", toString(lockDurationInMili)], SEP)
319327 let totalWavesClaimedEntry = makeString(["%d", toString(0)], SEP)
320328 let userLeaseStateEntry = makeString(["%s", leaseState], SEP)
321329 [_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)]
322330 }
323331
324332
325333 func _stawMF (lockPeriod,collateralWaves) = {
326334 let _adjustedMr = _computeMr()
327335 (fraction(_unitDecimals, (_Dt * _adjustedMr), _Ppy(lockPeriod)) * collateralWaves)
328336 }
329337
330338
331339 func _emissionRateWaves (lockPeriod,collateral) = {
332340 let extensionFactor = fraction(lockPeriod, 15, 10)
333341 ((collateral / ((lockPeriod * extensionFactor) - lockPeriod)) * _Dt)
334342 }
335343
336344
337345 func _incrTotalStawLP (amount) = {
338346 let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP")
339347 [_writeInt(_totalStawLP, (oldStawLP + amount))]
340348 }
341349
342350
343351 func _decrTotalStawLP (amount) = {
344352 let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP")
345353 [_writeInt(_totalStawLP, (oldStawLP - amount))]
346354 }
347355
348356
349357 func _incrTotalWavesRef (amount) = {
350358 let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves")
351359 [_writeInt(_totalWavesRef, (oldWavesRef + amount))]
352360 }
353361
354362
355363 func _decrTotalWavesRef (amount) = {
356364 let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves")
357365 [_writeInt(_totalWavesRef, (oldWavesRef - amount))]
358366 }
359367
360368
361369 func _getNewTimeStamp (blockHeight) = {
362370 let time = match blockInfoByHeight(blockHeight) {
363371 case timeInfo: BlockInfo =>
364372 timeInfo.timestamp
365373 case _ =>
366374 throw("counld get timestamp")
367375 }
368376 time
369377 }
370378
371379
372380 @Callable(i)
373381 func getEmission (lockPeriod,collateral) = {
374382 let check1 = _onlyManager(i)
375383 if ((check1 == check1))
376384 then $Tuple2(nil, _emissionRateWaves(lockPeriod, collateral))
377385 else throw("Strict value is not equal to itself.")
378386 }
379387
380388
381389
382390 @Callable(i)
383391 func init (manager,dfx,assetID,leaseNode) = {
384392 let managerAlreadyExists = if (isDefined(_getS(_manager)))
385393 then _onlyManager(i)
386394 else true
387395 if ((managerAlreadyExists == managerAlreadyExists))
388396 then {
389397 let check1 = _validateAddress(manager)
390398 if ((check1 == check1))
391399 then {
392400 let check2 = _validateAddress(dfx)
393401 if ((check2 == check2))
394402 then {
395403 let check3 = _validateAddress(leaseNode)
396404 if ((check3 == check3))
397405 then {
398- let circulationIndex = _setParamVal(_circulationIncrIndex, 0)
399- let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0)
400- let Mr = _setParamVal(_Mr, _unitDecimals)
401- let totalStawMinted = _setParamVal(_totalStaw, 0)
402- let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0)
403- let globalIndexCount = _setParamVal(_globalIndexCount, 0)
404- let totalWavesRef = _setParamVal(_totalWavesRef, 0)
406+ let check4 = _validateAsset(assetID)
407+ if ((check4 == check4))
408+ then {
409+ let circulationIndex = _setParamVal(_circulationIncrIndex, 0)
410+ let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0)
411+ let Mr = _setParamVal(_Mr, _unitDecimals)
412+ let totalStawMinted = _setParamVal(_totalStaw, 0)
413+ let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0)
414+ let globalIndexCount = _setParamVal(_globalIndexCount, 0)
415+ let totalWavesRef = _setParamVal(_totalWavesRef, 0)
405416 [_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)]
417+ }
418+ else throw("Strict value is not equal to itself.")
406419 }
407420 else throw("Strict value is not equal to itself.")
408421 }
409422 else throw("Strict value is not equal to itself.")
410423 }
411424 else throw("Strict value is not equal to itself.")
412425 }
413426 else throw("Strict value is not equal to itself.")
414427 }
415428
416429
417430
418431 @Callable(i)
419432 func modifyGlobalParams (val) = {
420433 let check1 = _onlyManager(i)
421434 if ((check1 == check1))
422435 then {
423436 let check2 = _throwIf((size(val) == 2), "[global_key, value] pairs expected")
424437 if ((check2 == check2))
425438 then {
426439 let key = val[0]
427440 let valType = parseInt(val[1])
428441 match valType {
429442 case x: Int =>
430443 let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
431444 if ((validateKey == validateKey))
432445 then [_writeGlobalParam(key, x)]
433446 else throw("Strict value is not equal to itself.")
434447 case x: Unit =>
435448 let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
436449 if ((validateKey == validateKey))
437450 then {
438- let validateAddress = _validateAddress(val[1])
439- if ((validateAddress == validateAddress))
440- then [_writeGlobalParam(key, val[1])]
451+ let stringValue = val[1]
452+ let refAddress = _getRegistryEntryValue("_manager")
453+ let check4 = match refAddress {
454+ case strType: String =>
455+ if ((size(strType) == size(stringValue)))
456+ then _validateAddress(stringValue)
457+ else _validateAsset(stringValue)
458+ case _ =>
459+ throw("value type not supported")
460+ }
461+ if ((check4 == check4))
462+ then [_writeGlobalParam(key, stringValue)]
441463 else throw("Strict value is not equal to itself.")
442464 }
443465 else throw("Strict value is not equal to itself.")
444466 case _ =>
445- $Tuple2(nil, true)
467+ throw(("failed to modify " + val[0]))
446468 }
447469 }
448470 else throw("Strict value is not equal to itself.")
449471 }
450472 else throw("Strict value is not equal to itself.")
451473 }
452474
453475
454476
455477 @Callable(i)
456478 func revokeLock () = {
457479 let check1 = _onlyManager(i)
458480 if ((check1 == check1))
459481 then nil
460482 else throw("Strict value is not equal to itself.")
461483 }
462484
463485
464486
465487 @Callable(i)
466488 func claim (transactionID) = {
467489 let callerAddress = toBase58String(i.caller.bytes)
468490 let collateralKey = makeString([callerAddress, transactionID, _wavesAmount], SEP)
469491 let lockperiodKey = makeString([callerAddress, transactionID, _lockDuration], SEP)
470492 let lockIdKey = makeString([callerAddress, transactionID, _lockId], SEP)
471493 let lockperiodInMiliKey = makeString([callerAddress, transactionID, _lockPeriodInMiliSec], SEP)
472494 let totalWavesClaimedKey = makeString([callerAddress, transactionID, _totalWavesClaimed], SEP)
473495 let stawLPAmountKey = makeString([callerAddress, transactionID, _stawLPAmount], SEP)
474496 let wavesAmountKey = makeString([callerAddress, transactionID, _wavesAmount], SEP)
475497 let userTotalWavesLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
476498 let userLeaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
477499 let leaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
478500 let globalWavesRef = _getIV(_totalWavesRef)
479501 if ((globalWavesRef == globalWavesRef))
480502 then {
481503 let globalStawPL = _getIV(_totalStawLP)
482504 if ((globalStawPL == globalStawPL))
483505 then {
484506 let lockId = match _getRegistryEntryValue(lockIdKey) {
485507 case t: ByteVector =>
486508 t
487509 case _ =>
488510 throw("failed to get lease id")
489511 }
490512 if ((lockId == lockId))
491513 then {
492514 let userTotalWavesLocked = match _getRegistryEntryValue(userTotalWavesLockedKey) {
493515 case t: Int =>
494516 t
495517 case _ =>
496518 throw("failed to get total waves locked by this address")
497519 }
498520 if ((userTotalWavesLocked == userTotalWavesLocked))
499521 then {
500522 let wavesAmount = match _getRegistryEntryValue(wavesAmountKey) {
501523 case t: Int =>
502524 t
503525 case _ =>
504526 throw("failed to get total waves locked")
505527 }
506528 if ((wavesAmount == wavesAmount))
507529 then {
508530 let totalWavesClaimed = match _getRegistryEntryValue(totalWavesClaimedKey) {
509531 case t: Int =>
510532 t
511533 case _ =>
512534 throw("failed to get total waves claimed")
513535 }
514536 if ((totalWavesClaimed == totalWavesClaimed))
515537 then {
516538 let stawLPAmount = match _getRegistryEntryValue(stawLPAmountKey) {
517539 case t: Int =>
518540 t
519541 case _ =>
520542 throw("failed to get stawPL")
521543 }
522544 if ((stawLPAmount == stawLPAmount))
523545 then {
524546 let lockPeriodInMili = match _getRegistryEntryValue(lockperiodInMiliKey) {
525547 case t: Int =>
526548 t
527549 case _ =>
528550 throw("failed to get lock period timespam")
529551 }
530552 if ((lockPeriodInMili == lockPeriodInMili))
531553 then {
532554 let currentTimeStamp = match _getNewTimeStamp(height) {
533555 case t: Int =>
534556 t
535557 case _ =>
536558 throw("failed to get current timestamp")
537559 }
538560 if ((currentTimeStamp == currentTimeStamp))
539561 then {
540562 let collateral = match _getRegistryEntryValue(collateralKey) {
541563 case t: Int =>
542564 t
543565 case _ =>
544566 throw("failed to get collateral")
545567 }
546568 if ((collateral == collateral))
547569 then {
548570 let lockPeriod = match _getRegistryEntryValue(lockperiodKey) {
549571 case t: Int =>
550572 t
551573 case _ =>
552574 throw("failed to get lockPeriod")
553575 }
554576 if ((lockPeriod == lockPeriod))
555577 then {
556578 let currentLeaseState = match _getRegistryEntryValue(userLeaseStateKey) {
557579 case t: String =>
558580 t
559581 case _ =>
560582 throw("failed to get lease state")
561583 }
562584 if ((currentLeaseState == currentLeaseState))
563585 then {
564586 let leaseState = match _getRegistryEntryValue(leaseStateKey) {
565587 case t: String =>
566588 t
567589 case _ =>
568590 throw("failed to get lease state for user")
569591 }
570592 if ((leaseState == leaseState))
571593 then {
572594 let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed")
573595 if ((check1 == check1))
574596 then {
575597 let leaseAction = if ((currentLeaseState == "leased"))
576598 then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled"))
577599 else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled"))
578600 if ((leaseAction == leaseAction))
579601 then {
580602 let check2 = _throwIf(if ((0 == wavesAmount))
581603 then true
582604 else (0 == stawLPAmount), "all claims exhausted for this trx")
583605 if ((check2 == check2))
584606 then {
585607 let emissionValuePerDT = (_emissionRateWaves(lockPeriod, collateral) * _Dt)
586608 let claimAction = {
587609 let timeStampDiff = (currentTimeStamp - lockPeriodInMili)
588610 let daysAfterLockPeriodElasped = (timeStampDiff / _Dt)
589611 if ((daysAfterLockPeriodElasped == 0))
590612 then throw("less than 24hrs before first claim")
591613 else if (((timeStampDiff % _Dt) != 0))
592614 then throw("already claimed or less than 24hrs before next claim")
593615 else if ((daysAfterLockPeriodElasped > lockPeriod))
594616 then throw("all claims exhausted")
595617 else {
596618 let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT)
597619 let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs")
598620 if ((check3_1 == check3_1))
599621 then {
600622 let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted")
601623 if ((check3_2 == check3_2))
602624 then {
603625 let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1))
604626 then totalAmountClaimable
605627 else (totalAmountClaimable - totalWavesClaimed)
606628 let newTotalWavesClaim = totalAmountClaimable
607629 let newWavesAmount = if ((daysAfterLockPeriodElasped == 1))
608630 then (wavesAmount - totalAmountClaimable)
609631 else (wavesAmount - (totalAmountClaimable - totalWavesClaimed))
610632 let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1))
611633 then (stawLPAmount - totalAmountClaimable)
612634 else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed))
613635 let newGlobalWaveRef = (globalWavesRef - newWavesAmount)
614636 let newGlobalStawPL = (globalStawPL - newStawLPAmount)
615637 let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend)
616638 let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP)
617639 let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP)
618640 let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP)
619641 let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP)
620642 [leaseAction._1, leaseAction._2, _writeStr(wavesAmountKey, wavesAmountEntry), _writeStr(stawLPAmountKey, stawLPAmountEntry), _writeStr(totalWavesClaimedKey, totalWavesClaimedEntry), _writeStr(userTotalWavesLockedKey, newUserTotalWavesLockedEntry), _writeInt(_totalWavesRef, newGlobalWaveRef), _writeInt(_totalStawLP, newGlobalStawPL), ScriptTransfer(Address(i.caller.bytes), claimAmountToSend, unit)]
621643 }
622644 else throw("Strict value is not equal to itself.")
623645 }
624646 else throw("Strict value is not equal to itself.")
625647 }
626648 }
627649 if ((claimAction == claimAction))
628650 then claimAction
629651 else throw("Strict value is not equal to itself.")
630652 }
631653 else throw("Strict value is not equal to itself.")
632654 }
633655 else throw("Strict value is not equal to itself.")
634656 }
635657 else throw("Strict value is not equal to itself.")
636658 }
637659 else throw("Strict value is not equal to itself.")
638660 }
639661 else throw("Strict value is not equal to itself.")
640662 }
641663 else throw("Strict value is not equal to itself.")
642664 }
643665 else throw("Strict value is not equal to itself.")
644666 }
645667 else throw("Strict value is not equal to itself.")
646668 }
647669 else throw("Strict value is not equal to itself.")
648670 }
649671 else throw("Strict value is not equal to itself.")
650672 }
651673 else throw("Strict value is not equal to itself.")
652674 }
653675 else throw("Strict value is not equal to itself.")
654676 }
655677 else throw("Strict value is not equal to itself.")
656678 }
657679 else throw("Strict value is not equal to itself.")
658680 }
659681 else throw("Strict value is not equal to itself.")
660682 }
661683 else throw("Strict value is not equal to itself.")
662684 }
663685
664686
665687
666688 @Callable(i)
667689 func mintStaw (lockPeriod) = {
668690 let callerAddress = toBase58String(i.caller.bytes)
669691 let trxID = toBase58String(i.transactionId)
670692 let check1 = _throwIf((1 != size(i.payments)), "no payments attached")
671693 if ((check1 == check1))
672694 then {
673695 let check2 = if (isDefined(i.payments[0].assetId))
674696 then throw("only waves supported")
675697 else true
676698 if ((check2 == check2))
677699 then {
678700 let amountInWaves = i.payments[0].amount
679701 let check3 = if (if ((_minLockAmount > amountInWaves))
680702 then true
681703 else (amountInWaves > _maxLockAmount))
682704 then throw("amount to lock is out of range")
683705 else true
684706 if ((check3 == check3))
685707 then {
686708 let check4 = if ((_minLockperiod > lockPeriod))
687709 then throw("minimum of 14 days lock period")
688710 else true
689711 if ((check4 == check4))
690712 then {
691713 let totalStawMint = _stawMF(lockPeriod, amountInWaves)
692714 let stawPL = amountInWaves
693715 let fee = fraction(totalStawMint, 10, 100)
694716 let userGetStawAmount = (totalStawMint - fee)
695717 let lockPeriodToMilisec = (_getNewTimeStamp(height) + _daysToMiliSec(lockPeriod))
696718 if ((lockPeriodToMilisec == lockPeriodToMilisec))
697719 then {
698720 let new_index = (_throwOrReturnI(_getI(_globalIndexCount), "global index not previously defined") + 1)
699721 if ((new_index == new_index))
700722 then {
701723 let addressFee = Address(fromBase58String(_throwOrReturnS(_getS(_Dfx), "dfx not previously defined")))
702724 if ((addressFee == addressFee))
703725 then {
704726 let stawAssetId = fromBase58String(_throwOrReturnS(_getS(_stawAssetId), "asset id not previously defined"))
705727 if ((stawAssetId == stawAssetId))
706728 then {
707729 let lessee = Address(fromBase58String(_throwOrReturnS(_getS(_lesseeAddress), "lease node not previously defined")))
708730 if ((lessee == lessee))
709731 then {
710732 let userLockIndexKey = makeString([callerAddress, _userLocalIndexCount], SEP)
711733 let userTotalLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
712734 let userIndexCount = match _getRegistryEntryValue(userLockIndexKey) {
713735 case x: Int =>
714736 (x + 1)
715737 case _ =>
716738 0
717739 }
718740 if ((userIndexCount == userIndexCount))
719741 then {
720742 let userTotalLocked = match _getRegistryEntryValue(userTotalLockedKey) {
721743 case x: Int =>
722744 (x + amountInWaves)
723745 case _ =>
724746 amountInWaves
725747 }
726748 if ((userTotalLocked == userTotalLocked))
727749 then {
728750 let leaseOut = Lease(lessee, amountInWaves)
729751 if ((leaseOut == leaseOut))
730752 then {
731753 let leaseIdStr = toBase58String(calculateLeaseId(leaseOut))
732754 if ((leaseIdStr == leaseIdStr))
733755 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))
734756 else throw("Strict value is not equal to itself.")
735757 }
736758 else throw("Strict value is not equal to itself.")
737759 }
738760 else throw("Strict value is not equal to itself.")
739761 }
740762 else throw("Strict value is not equal to itself.")
741763 }
742764 else throw("Strict value is not equal to itself.")
743765 }
744766 else throw("Strict value is not equal to itself.")
745767 }
746768 else throw("Strict value is not equal to itself.")
747769 }
748770 else throw("Strict value is not equal to itself.")
749771 }
750772 else throw("Strict value is not equal to itself.")
751773 }
752774 else throw("Strict value is not equal to itself.")
753775 }
754776 else throw("Strict value is not equal to itself.")
755777 }
756778 else throw("Strict value is not equal to itself.")
757779 }
758780 else throw("Strict value is not equal to itself.")
759781 }
760782
761783

github/deemru/w8io/169f3d6 
80.44 ms