tx · EBzqmd3VceqSzZUj3QE4kRbTSB61VZvns1KnPh9xDP8o

3NCBhUuq2LX5fqkbvsQ5LPHtCkt3B9T2Q8j:  -0.02200000 Waves

2023.03.13 15:56 [2488280] smart account 3NCBhUuq2LX5fqkbvsQ5LPHtCkt3B9T2Q8j > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
37.94 ms