tx · CEAU4AETXpN3kKocb6qY3BTECyLTM9JC17jHvzNbSvhf

3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH:  -0.02300000 Waves

2023.03.14 21:15 [2490073] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves

{ "type": 13, "id": "CEAU4AETXpN3kKocb6qY3BTECyLTM9JC17jHvzNbSvhf", "fee": 2300000, "feeAssetId": null, "timestamp": 1678817797737, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "36JPfrhMJDYLfdkvC95uDDVudkSAVTT7MCwvynjf5MFhNrFbRHrv5rf7KL7V1ZjBEgwY7t311Y5EdjdgJ3PAQ5vN" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBQwADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX2Npc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QFE2xvY2tQZXJpb2RUb01pbGlzZWMFCW5ld19pbmRleAUNYW1vdW50SW5XYXZlcwURdXNlckdldFN0YXdBbW91bnQFBnN0YXdQTAUGaGVpZ2h0BQpsZWFzZUlkU3RyBQ91c2VyVG90YWxMb2NrZWQFDnVzZXJJbmRleENvdW50AgZsZWFzZWQJARJfdXBkYXRlR2xvYmFsRW50cnkEBQ1hbW91bnRJbldhdmVzBQ10b3RhbFN0YXdNaW50BQZzdGF3UEwFCW5ld19pbmRleAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAM2MXL", "height": 2490073, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BrD3yKLCRSTm1M2QvaYNxdP5oXiDN4K79ZVw6yghUNrx 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 _writeGlobalParam (key,_value) = match _value {
153+ case _value: Int =>
154+ let entry = makeString(["%d", toString(_value)], SEP)
155+ _writeStr(key, entry)
156+ case _value: String =>
157+ let entry = makeString(["%s", _value], SEP)
158+ _writeStr(key, entry)
159+ case _value: Boolean =>
160+ let entry = makeString(["%b", toString(_value)], SEP)
161+ _writeStr(key, entry)
162+ case _ =>
163+ throw("type not supported")
164+}
165+
166+
167+func _daysToMiliSec (days) = {
168+ let check = _throwIf((days >= 0), "invalid locking days!")
169+ if ((check == check))
170+ then (days * _Dt)
171+ else throw("Strict value is not equal to itself.")
172+ }
173+
174+
175+func _writeConstString (key,value) = if (!(isDefined(_getS(key))))
176+ then _writeStr(key, value)
177+ else throw(("entry already initialized: " + key))
178+
179+
180+func _writeConstInteger (key,value) = if (!(isDefined(_getS(key))))
181+ then _writeInt(key, value)
182+ else throw((" entry already initialized: " + key))
183+
184+
185+func _onlyManager (i) = {
186+ let manager = _throwOrReturnS(_getS(_manager), "manager not found")
187+ if ((manager == manager))
188+ then _throwIf((toBase58String(i.caller.bytes) != manager), "address not authorized")
189+ else throw("Strict value is not equal to itself.")
190+ }
191+
192+
193+func _abs (val) = if ((0 > val))
194+ then -(val)
195+ else val
196+
197+
198+func _validateAddress (address) = match address {
199+ case address: String =>
200+ let _address = addressFromString(address)
201+ match _address {
202+ case _address: Address =>
203+ true
204+ case _ =>
205+ throw("invalid address")
206+ }
207+ case address: ByteVector =>
208+ let _address = addressFromPublicKey(address)
209+ match _address {
210+ case _address: Address =>
211+ true
212+ case _ =>
213+ throw("invalid public key")
214+ }
215+ case _ =>
216+ throw("invalid input type")
217+}
218+
219+
220+func _computeMr () = {
221+ let currentCircIndex = _throwOrReturnI(_getI(_circulationIncrIndex), "increment index not previously defined")
222+ if ((currentCircIndex == currentCircIndex))
223+ then {
224+ let stawAssetId = _throwOrReturnS(_getS(_stawAssetId), "asset id not previouly defined")
225+ if ((stawAssetId == stawAssetId))
226+ then {
227+ let stawCirculatingSupply = match assetInfo(fromBase58String(stawAssetId)) {
228+ case asset: Asset =>
229+ asset.quantity
230+ case _ =>
231+ throw(("asset not found for " + stawAssetId))
232+ }
233+ let unitIncrement = (_abs((stawCirculatingSupply - _incrementRef)) / _incrementRef)
234+ let newCirculationIncrIndex = if ((unitIncrement > currentCircIndex))
235+ then (unitIncrement + currentCircIndex)
236+ else currentCircIndex
237+ let currentMr = _throwOrReturnI(_Mr, "miniting rate not previously defined")
238+ if ((newCirculationIncrIndex == currentCircIndex))
239+ then currentMr
240+ else {
241+ let newreductionFactor = (_throwOrReturnI(_percentageReductionFactor, "reduction factor not previously defined") + 10)
242+ let newCurrentMr = (currentMr - fraction(currentMr, newreductionFactor, 100))
243+ let store1 = _writeInt(_Mr, newCurrentMr)
244+ if ((store1 == store1))
245+ then {
246+ let store2 = _writeInt(_percentageReductionFactor, newreductionFactor)
247+ if ((store2 == store2))
248+ then {
249+ let store3 = _writeInt(_circulationIncrIndex, newCirculationIncrIndex)
250+ if ((store3 == store3))
251+ then newCurrentMr
252+ else throw("Strict value is not equal to itself.")
253+ }
254+ else throw("Strict value is not equal to itself.")
255+ }
256+ else throw("Strict value is not equal to itself.")
257+ }
258+ }
259+ else throw("Strict value is not equal to itself.")
260+ }
261+ else throw("Strict value is not equal to itself.")
262+ }
263+
264+
265+func _getRegistryEntryValue (key) = {
266+ let _rawValue = _throwOrReturnS(_getS(key), "entry not found")
267+ if ((_rawValue == _rawValue))
268+ then {
269+ let x = split(_rawValue, SEP)
270+ let formatSpecifier = takeRight(x[0], 1)
271+ let _valueString = x[(size(x) - 1)]
272+ let _value = if ((formatSpecifier == "s"))
273+ then _valueString
274+ else if ((formatSpecifier == "d"))
275+ then parseIntValue(_valueString)
276+ else if ((formatSpecifier == "b"))
277+ then fromBase58String(_valueString)
278+ else throw(("could not parse registry value for " + key))
279+ _value
280+ }
281+ else throw("Strict value is not equal to itself.")
282+ }
283+
284+
285+func _updateGlobalEntry (wavesAmount,stawAmount,stawPL,indexCount) = {
286+ let _newGlobalTotalWavesAmtRef = (_throwOrReturnI(_getI(_totalWavesRef), "global waves sum not previously defined") + wavesAmount)
287+ let _newGlobalTotalStawMinted = (_throwOrReturnI(_getI(_totalStaw), "gobal staw minted not previously defined") + stawAmount)
288+ let _newGlobalTotalStawPL = (_throwOrReturnI(_getI(_totalStawLP), "global stawPL not previously defined") + stawPL)
289+ let _newGlobaIndexCount = (_throwOrReturnI(_getI(_globalIndexCount), "global index count not previously defined") + indexCount)
290+[_writeInt(_totalWavesRef, _newGlobalTotalWavesAmtRef), _writeInt(_totalStaw, _newGlobalTotalStawMinted), _writeInt(_totalStawLP, _newGlobalTotalStawPL), _writeInt(_globalIndexCount, _newGlobaIndexCount)]
291+ }
292+
293+
294+func _registerUserEntry (transactionID,userAddress,lockDuration,lockDurationInMili,lockIndex,wavesAmount,stawAmount,stawLPAmount,lockAtHeight,lockId,totalLocked,localIndexCount,leaseState) = {
295+ let _txIdKey = makeString([userAddress, transactionID, _txId], SEP)
296+ let _lockDurationKey = makeString([userAddress, transactionID, _lockDuration], SEP)
297+ let _lockIndexKey = makeString([userAddress, transactionID, _lockIndex], SEP)
298+ let _wavesAmountKey = makeString([userAddress, transactionID, _wavesAmount], SEP)
299+ let _stawAmountKey = makeString([userAddress, transactionID, _stawAmount], SEP)
300+ let _stawLPAmountKey = makeString([userAddress, transactionID, _stawLPAmount], SEP)
301+ let _lockAtHeightKey = makeString([userAddress, transactionID, _lockAtHeight], SEP)
302+ let _lockIdKey = makeString([userAddress, transactionID, _lockId], SEP)
303+ let _totalLockedKey = makeString([userAddress, _userTotalLocked], SEP)
304+ let _localLockIndexKey = makeString([userAddress, _userLocalIndexCount], SEP)
305+ let _lockPeriodInMiliSecKey = makeString([userAddress, transactionID, _lockPeriodInMiliSec], SEP)
306+ let _totalWavesClaimedKey = makeString([userAddress, transactionID, _totalWavesClaimed], SEP)
307+ let _userLeaseStateKey = makeString([userAddress, transactionID, _userLeaseState], SEP)
308+ let trxIdEntry = makeString(["%s", transactionID], SEP)
309+ let lockDurationEntry = makeString(["%d", toString(lockDuration)], SEP)
310+ let lockIndexEntry = makeString(["%d", toString(lockIndex)], SEP)
311+ let wavesAmountEntry = makeString(["%d", toString(wavesAmount)], SEP)
312+ let stawAmountEntry = makeString(["%d", toString(stawAmount)], SEP)
313+ let stawLPAmountEntry = makeString(["%d", toString(stawLPAmount)], SEP)
314+ let lockAtHeightEntry = makeString(["%d", toString(lockAtHeight)], SEP)
315+ let lockIdEntry = makeString(["%b", lockId], SEP)
316+ let totalLockedEntry = makeString(["%d", toString(totalLocked)], SEP)
317+ let userLocalIndexEntry = makeString(["%d", toString(localIndexCount)], SEP)
318+ let lockPeriodInMiliSecEntry = makeString(["%d", toString(lockDurationInMili)], SEP)
319+ let totalWavesClaimedEntry = makeString(["%d", toString(0)], SEP)
320+ let userLeaseStateEntry = makeString(["%s", leaseState], SEP)
321+[_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)]
322+ }
323+
324+
325+func _stawMF (lockPeriod,collateralWaves) = {
326+ let _adjustedMr = _computeMr()
327+ (fraction(_unitDecimals, (_Dt * _adjustedMr), _Ppy(lockPeriod)) * collateralWaves)
328+ }
329+
330+
331+func _emissionRateWaves (lockPeriod,collateral) = {
332+ let extensionFactor = fraction(lockPeriod, 15, 10)
333+ ((collateral / ((lockPeriod * extensionFactor) - lockPeriod)) * _Dt)
334+ }
335+
336+
337+func _incrTotalStawLP (amount) = {
338+ let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP")
339+[_writeInt(_totalStawLP, (oldStawLP + amount))]
340+ }
341+
342+
343+func _decrTotalStawLP (amount) = {
344+ let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP")
345+[_writeInt(_totalStawLP, (oldStawLP - amount))]
346+ }
347+
348+
349+func _incrTotalWavesRef (amount) = {
350+ let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves")
351+[_writeInt(_totalWavesRef, (oldWavesRef + amount))]
352+ }
353+
354+
355+func _decrTotalWavesRef (amount) = {
356+ let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves")
357+[_writeInt(_totalWavesRef, (oldWavesRef - amount))]
358+ }
359+
360+
361+func _getNewTimeStamp (blockHeight) = {
362+ let time = match blockInfoByHeight(blockHeight) {
363+ case timeInfo: BlockInfo =>
364+ timeInfo.timestamp
365+ case _ =>
366+ throw("counld get timestamp")
367+ }
368+ time
369+ }
370+
371+
372+@Callable(i)
373+func getEmission (lockPeriod,collateral) = {
374+ let check1 = _onlyManager(i)
375+ if ((check1 == check1))
376+ then $Tuple2(nil, _emissionRateWaves(lockPeriod, collateral))
377+ else throw("Strict value is not equal to itself.")
378+ }
379+
380+
381+
382+@Callable(i)
383+func init (manager,dfx,assetID,leaseNode) = {
384+ let managerAlreadyExists = if (isDefined(_getS(_manager)))
385+ then _onlyManager(i)
386+ else true
387+ if ((managerAlreadyExists == managerAlreadyExists))
388+ then {
389+ let check1 = _validateAddress(manager)
390+ if ((check1 == check1))
391+ then {
392+ let check2 = _validateAddress(dfx)
393+ if ((check2 == check2))
394+ then {
395+ let check3 = _validateAddress(leaseNode)
396+ if ((check3 == check3))
397+ 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)
405+[_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)]
406+ }
407+ else throw("Strict value is not equal to itself.")
408+ }
409+ else throw("Strict value is not equal to itself.")
410+ }
411+ else throw("Strict value is not equal to itself.")
412+ }
413+ else throw("Strict value is not equal to itself.")
414+ }
415+
416+
417+
418+@Callable(i)
419+func modifyGlobalParams (val) = {
420+ let check1 = _onlyManager(i)
421+ if ((check1 == check1))
422+ then {
423+ let check2 = _throwIf((size(val) == 2), "[global_key, value] pairs expected")
424+ if ((check2 == check2))
425+ then {
426+ let key = val[0]
427+ let valType = parseInt(val[1])
428+ match valType {
429+ case x: Int =>
430+ let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
431+ if ((validateKey == validateKey))
432+ then [_writeGlobalParam(key, x)]
433+ else throw("Strict value is not equal to itself.")
434+ case x: Unit =>
435+ let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
436+ if ((validateKey == validateKey))
437+ then {
438+ let validateAddress = _validateAddress(val[1])
439+ if ((validateAddress == validateAddress))
440+ then [_writeGlobalParam(key, val[1])]
441+ else throw("Strict value is not equal to itself.")
442+ }
443+ else throw("Strict value is not equal to itself.")
444+ case _ =>
445+ $Tuple2(nil, true)
446+ }
447+ }
448+ else throw("Strict value is not equal to itself.")
449+ }
450+ else throw("Strict value is not equal to itself.")
451+ }
452+
453+
454+
455+@Callable(i)
456+func revokeLock () = {
457+ let check1 = _onlyManager(i)
458+ if ((check1 == check1))
459+ then nil
460+ else throw("Strict value is not equal to itself.")
461+ }
462+
463+
464+
465+@Callable(i)
466+func claim (transactionID) = {
467+ let callerAddress = toBase58String(i.caller.bytes)
468+ let collateralKey = makeString([callerAddress, transactionID, _wavesAmount], SEP)
469+ let lockperiodKey = makeString([callerAddress, transactionID, _lockDuration], SEP)
470+ let lockIdKey = makeString([callerAddress, transactionID, _lockId], SEP)
471+ let lockperiodInMiliKey = makeString([callerAddress, transactionID, _lockPeriodInMiliSec], SEP)
472+ let totalWavesClaimedKey = makeString([callerAddress, transactionID, _totalWavesClaimed], SEP)
473+ let stawLPAmountKey = makeString([callerAddress, transactionID, _stawLPAmount], SEP)
474+ let wavesAmountKey = makeString([callerAddress, transactionID, _wavesAmount], SEP)
475+ let userTotalWavesLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
476+ let userLeaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
477+ let leaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
478+ let globalWavesRef = _getIV(_totalWavesRef)
479+ if ((globalWavesRef == globalWavesRef))
480+ then {
481+ let globalStawPL = _getIV(_totalStawLP)
482+ if ((globalStawPL == globalStawPL))
483+ then {
484+ let lockId = match _getRegistryEntryValue(lockIdKey) {
485+ case t: ByteVector =>
486+ t
487+ case _ =>
488+ throw("failed to get lease id")
489+ }
490+ if ((lockId == lockId))
491+ then {
492+ let userTotalWavesLocked = match _getRegistryEntryValue(userTotalWavesLockedKey) {
493+ case t: Int =>
494+ t
495+ case _ =>
496+ throw("failed to get total waves locked by this address")
497+ }
498+ if ((userTotalWavesLocked == userTotalWavesLocked))
499+ then {
500+ let wavesAmount = match _getRegistryEntryValue(wavesAmountKey) {
501+ case t: Int =>
502+ t
503+ case _ =>
504+ throw("failed to get total waves locked")
505+ }
506+ if ((wavesAmount == wavesAmount))
507+ then {
508+ let totalWavesClaimed = match _getRegistryEntryValue(totalWavesClaimedKey) {
509+ case t: Int =>
510+ t
511+ case _ =>
512+ throw("failed to get total waves claimed")
513+ }
514+ if ((totalWavesClaimed == totalWavesClaimed))
515+ then {
516+ let stawLPAmount = match _getRegistryEntryValue(stawLPAmountKey) {
517+ case t: Int =>
518+ t
519+ case _ =>
520+ throw("failed to get stawPL")
521+ }
522+ if ((stawLPAmount == stawLPAmount))
523+ then {
524+ let lockPeriodInMili = match _getRegistryEntryValue(lockperiodInMiliKey) {
525+ case t: Int =>
526+ t
527+ case _ =>
528+ throw("failed to get lock period timespam")
529+ }
530+ if ((lockPeriodInMili == lockPeriodInMili))
531+ then {
532+ let currentTimeStamp = match _getNewTimeStamp(height) {
533+ case t: Int =>
534+ t
535+ case _ =>
536+ throw("failed to get current timestamp")
537+ }
538+ if ((currentTimeStamp == currentTimeStamp))
539+ then {
540+ let collateral = match _getRegistryEntryValue(collateralKey) {
541+ case t: Int =>
542+ t
543+ case _ =>
544+ throw("failed to get collateral")
545+ }
546+ if ((collateral == collateral))
547+ then {
548+ let lockPeriod = match _getRegistryEntryValue(lockperiodKey) {
549+ case t: Int =>
550+ t
551+ case _ =>
552+ throw("failed to get lockPeriod")
553+ }
554+ if ((lockPeriod == lockPeriod))
555+ then {
556+ let currentLeaseState = match _getRegistryEntryValue(userLeaseStateKey) {
557+ case t: String =>
558+ t
559+ case _ =>
560+ throw("failed to get lease state")
561+ }
562+ if ((currentLeaseState == currentLeaseState))
563+ then {
564+ let leaseState = match _getRegistryEntryValue(leaseStateKey) {
565+ case t: String =>
566+ t
567+ case _ =>
568+ throw("failed to get lease state for user")
569+ }
570+ if ((leaseState == leaseState))
571+ then {
572+ let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed")
573+ if ((check1 == check1))
574+ then {
575+ let leaseAction = if ((currentLeaseState == "leased"))
576+ then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled"))
577+ else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled"))
578+ if ((leaseAction == leaseAction))
579+ then {
580+ let check2 = _throwIf(if ((0 == wavesAmount))
581+ then true
582+ else (0 == stawLPAmount), "all claims exhausted for this trx")
583+ if ((check2 == check2))
584+ then {
585+ let emissionValuePerDT = (_emissionRateWaves(lockPeriod, collateral) * _Dt)
586+ let claimAction = {
587+ let timeStampDiff = (currentTimeStamp - lockPeriodInMili)
588+ let daysAfterLockPeriodElasped = (timeStampDiff / _Dt)
589+ if ((daysAfterLockPeriodElasped == 0))
590+ then throw("less than 24hrs before first claim")
591+ else if (((timeStampDiff % _Dt) != 0))
592+ then throw("already claimed or less than 24hrs before next claim")
593+ else if ((daysAfterLockPeriodElasped > lockPeriod))
594+ then throw("all claims exhausted")
595+ else {
596+ let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT)
597+ let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs")
598+ if ((check3_1 == check3_1))
599+ then {
600+ let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted")
601+ if ((check3_2 == check3_2))
602+ then {
603+ let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1))
604+ then totalAmountClaimable
605+ else (totalAmountClaimable - totalWavesClaimed)
606+ let newTotalWavesClaim = totalAmountClaimable
607+ let newWavesAmount = if ((daysAfterLockPeriodElasped == 1))
608+ then (wavesAmount - totalAmountClaimable)
609+ else (wavesAmount - (totalAmountClaimable - totalWavesClaimed))
610+ let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1))
611+ then (stawLPAmount - totalAmountClaimable)
612+ else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed))
613+ let newGlobalWaveRef = (globalWavesRef - newWavesAmount)
614+ let newGlobalStawPL = (globalStawPL - newStawLPAmount)
615+ let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend)
616+ let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP)
617+ let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP)
618+ let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP)
619+ let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP)
620+[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)]
621+ }
622+ else throw("Strict value is not equal to itself.")
623+ }
624+ else throw("Strict value is not equal to itself.")
625+ }
626+ }
627+ if ((claimAction == claimAction))
628+ then claimAction
629+ else throw("Strict value is not equal to itself.")
630+ }
631+ else throw("Strict value is not equal to itself.")
632+ }
633+ else throw("Strict value is not equal to itself.")
634+ }
635+ else throw("Strict value is not equal to itself.")
636+ }
637+ else throw("Strict value is not equal to itself.")
638+ }
639+ else throw("Strict value is not equal to itself.")
640+ }
641+ else throw("Strict value is not equal to itself.")
642+ }
643+ else throw("Strict value is not equal to itself.")
644+ }
645+ else throw("Strict value is not equal to itself.")
646+ }
647+ else throw("Strict value is not equal to itself.")
648+ }
649+ else throw("Strict value is not equal to itself.")
650+ }
651+ else throw("Strict value is not equal to itself.")
652+ }
653+ else throw("Strict value is not equal to itself.")
654+ }
655+ else throw("Strict value is not equal to itself.")
656+ }
657+ else throw("Strict value is not equal to itself.")
658+ }
659+ else throw("Strict value is not equal to itself.")
660+ }
661+ else throw("Strict value is not equal to itself.")
662+ }
663+
664+
665+
666+@Callable(i)
667+func mintStaw (lockPeriod) = {
668+ let callerAddress = toBase58String(i.caller.bytes)
669+ let trxID = toBase58String(i.transactionId)
670+ let check1 = _throwIf((1 != size(i.payments)), "no payments attached")
671+ if ((check1 == check1))
672+ then {
673+ let check2 = if (isDefined(i.payments[0].assetId))
674+ then throw("only waves supported")
675+ else true
676+ if ((check2 == check2))
677+ then {
678+ let amountInWaves = i.payments[0].amount
679+ let check3 = if (if ((_minLockAmount > amountInWaves))
680+ then true
681+ else (amountInWaves > _maxLockAmount))
682+ then throw("amount to lock is out of range")
683+ else true
684+ if ((check3 == check3))
685+ then {
686+ let check4 = if ((_minLockperiod > lockPeriod))
687+ then throw("minimum of 14 days lock period")
688+ else true
689+ if ((check4 == check4))
690+ then {
691+ let totalStawMint = _stawMF(lockPeriod, amountInWaves)
692+ let stawPL = amountInWaves
693+ let fee = fraction(totalStawMint, 10, 100)
694+ let userGetStawAmount = (totalStawMint - fee)
695+ let lockPeriodToMilisec = (_getNewTimeStamp(height) + _daysToMiliSec(lockPeriod))
696+ if ((lockPeriodToMilisec == lockPeriodToMilisec))
697+ then {
698+ let new_index = (_throwOrReturnI(_getI(_globalIndexCount), "global index not previously defined") + 1)
699+ if ((new_index == new_index))
700+ then {
701+ let addressFee = Address(fromBase58String(_throwOrReturnS(_getS(_Dfx), "dfx not previously defined")))
702+ if ((addressFee == addressFee))
703+ then {
704+ let stawAssetId = fromBase58String(_throwOrReturnS(_getS(_stawAssetId), "asset id not previously defined"))
705+ if ((stawAssetId == stawAssetId))
706+ then {
707+ let lessee = Address(fromBase58String(_throwOrReturnS(_getS(_lesseeAddress), "lease node not previously defined")))
708+ if ((lessee == lessee))
709+ then {
710+ let userLockIndexKey = makeString([callerAddress, _userLocalIndexCount], SEP)
711+ let userTotalLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
712+ let userIndexCount = match _getRegistryEntryValue(userLockIndexKey) {
713+ case x: Int =>
714+ (x + 1)
715+ case _ =>
716+ 0
717+ }
718+ if ((userIndexCount == userIndexCount))
719+ then {
720+ let userTotalLocked = match _getRegistryEntryValue(userTotalLockedKey) {
721+ case x: Int =>
722+ (x + amountInWaves)
723+ case _ =>
724+ amountInWaves
725+ }
726+ if ((userTotalLocked == userTotalLocked))
727+ then {
728+ let leaseOut = Lease(lessee, amountInWaves)
729+ if ((leaseOut == leaseOut))
730+ then {
731+ let leaseIdStr = toBase58String(calculateLeaseId(leaseOut))
732+ if ((leaseIdStr == leaseIdStr))
733+ 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))
734+ else throw("Strict value is not equal to itself.")
735+ }
736+ else throw("Strict value is not equal to itself.")
737+ }
738+ else throw("Strict value is not equal to itself.")
739+ }
740+ else throw("Strict value is not equal to itself.")
741+ }
742+ else throw("Strict value is not equal to itself.")
743+ }
744+ else throw("Strict value is not equal to itself.")
745+ }
746+ else throw("Strict value is not equal to itself.")
747+ }
748+ else throw("Strict value is not equal to itself.")
749+ }
750+ else throw("Strict value is not equal to itself.")
751+ }
752+ else throw("Strict value is not equal to itself.")
753+ }
754+ else throw("Strict value is not equal to itself.")
755+ }
756+ else throw("Strict value is not equal to itself.")
757+ }
758+ else throw("Strict value is not equal to itself.")
759+ }
760+
761+

github/deemru/w8io/169f3d6 
71.57 ms