tx · 4HRzwe8P96dfp9NAgksqBUxYLMMC77YmuFdv3uRLSoT7

3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH:  -0.02500000 Waves

2023.03.20 18:16 [2498495] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves

{ "type": 13, "id": "4HRzwe8P96dfp9NAgksqBUxYLMMC77YmuFdv3uRLSoT7", "fee": 2500000, "feeAssetId": null, "timestamp": 1679325381427, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "4wdRANejfHnctL7SJgm7J19t2D1Kq7ajbsBbEse2g9KFA5wVewbRVV538RVE5JVR7i9sAxBhtBi6aQEXFWewuNWT" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRQADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX2NpcmN1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YXdQTAUJbmV3X2luZGV4CAUNdG90YWxTdGF3TWludAJfMgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAwOtdg", "height": 2498495, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CrLHGCTHCs8B1kLdTHnpggzop83EfsPc2aa7vffZznjj Next: EUKnu2SVoYaqHEyVi9PTZsGtbJZ2i6DbdNaKpxusjn1w Diff:
OldNewDifferences
7373 let _totalStawLP = "TotalStawLP"
7474
7575 let _globalIndexCount = "IndexCount"
76+
77+let _daysAfterLockPeriod = "DaysAfterLockPeriodElasped"
7678
7779 func _getI (key) = getInteger(this, key)
7880
577579 let userTotalWavesLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
578580 let userLeaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
579581 let leaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
582+ let daysAfterLockPeriodElaspedKey = makeString([callerAddress, transactionID, _daysAfterLockPeriod], SEP)
580583 let globalWavesRef = match _getRegistryEntryValue(_totalWavesRef) {
581584 case t: Int =>
582585 t
681684 }
682685 if ((leaseState == leaseState))
683686 then {
684- let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed")
685- if ((check1 == check1))
687+ let daysAfterLockPeriodElasped = match _getS(daysAfterLockPeriodElaspedKey) {
688+ case t: String =>
689+ match _getRegistryEntryValue(daysAfterLockPeriodElaspedKey) {
690+ case z: Int =>
691+ z
692+ case _ =>
693+ 0
694+ }
695+ case _ =>
696+ 0
697+ }
698+ if ((daysAfterLockPeriodElasped == daysAfterLockPeriodElasped))
686699 then {
687- let leaseAction = if ((currentLeaseState == "leased"))
688- then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled"))
689- else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled"))
690- if ((leaseAction == leaseAction))
700+ let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed")
701+ if ((check1 == check1))
691702 then {
703+ let leaseAction = if ((currentLeaseState == "leased"))
704+ then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled"))
705+ else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled"))
692706 let check2 = _throwIf(if ((0 == wavesAmount))
693707 then true
694708 else (0 == stawLPAmount), "all claims exhausted for this trx")
697711 let emissionValuePerDT = (_emissionRateWaves(lockPeriod, collateral) * _Dt)
698712 let claimAction = {
699713 let timeStampDiff = (currentTimeStamp - lockPeriodInMili)
700- let daysAfterLockPeriodElasped = (timeStampDiff / _Dt)
714+ let xdays = (timeStampDiff / _Dt)
701715 if ((daysAfterLockPeriodElasped == 0))
702716 then throw("less than 24hrs before first claim")
703- else if (((timeStampDiff % _Dt) != 0))
704- then throw("already claimed or less than 24hrs before next claim")
705- else if ((daysAfterLockPeriodElasped > lockPeriod))
706- then throw("all claims exhausted")
707- else {
708- let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT)
709- let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs")
710- if ((check3_1 == check3_1))
711- then {
712- let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted")
713- if ((check3_2 == check3_2))
714- then {
715- let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1))
716- then totalAmountClaimable
717- else (totalAmountClaimable - totalWavesClaimed)
718- let newTotalWavesClaim = totalAmountClaimable
719- let newWavesAmount = if ((daysAfterLockPeriodElasped == 1))
720- then (wavesAmount - totalAmountClaimable)
721- else (wavesAmount - (totalAmountClaimable - totalWavesClaimed))
722- let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1))
723- then (stawLPAmount - totalAmountClaimable)
724- else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed))
725- let newGlobalWaveRef = (globalWavesRef - newWavesAmount)
726- let newGlobalStawPL = (globalStawPL - newStawLPAmount)
727- let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend)
728- let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP)
729- let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP)
730- let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP)
731- let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP)
732-[leaseAction._1, leaseAction._2, _writeStr(wavesAmountKey, wavesAmountEntry), _writeStr(stawLPAmountKey, stawLPAmountEntry), _writeStr(totalWavesClaimedKey, totalWavesClaimedEntry), _writeStr(userTotalWavesLockedKey, newUserTotalWavesLockedEntry), _writeGlobalParam(_totalWavesRef, newGlobalWaveRef), _writeGlobalParam(_totalStawLP, newGlobalStawPL), ScriptTransfer(Address(i.caller.bytes), claimAmountToSend, unit)]
733- }
734- else throw("Strict value is not equal to itself.")
735- }
736- else throw("Strict value is not equal to itself.")
737- }
717+ else if ((daysAfterLockPeriodElasped >= xdays))
718+ then throw("24hrs or less before next claim")
719+ else {
720+ let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT)
721+ let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs")
722+ if ((check3_1 == check3_1))
723+ then {
724+ let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted")
725+ if ((check3_2 == check3_2))
726+ then {
727+ let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1))
728+ then totalAmountClaimable
729+ else (totalAmountClaimable - totalWavesClaimed)
730+ let newTotalWavesClaim = totalAmountClaimable
731+ let newWavesAmount = if ((daysAfterLockPeriodElasped == 1))
732+ then (wavesAmount - totalAmountClaimable)
733+ else (wavesAmount - (totalAmountClaimable - totalWavesClaimed))
734+ let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1))
735+ then (stawLPAmount - totalAmountClaimable)
736+ else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed))
737+ let newGlobalWaveRef = (globalWavesRef - newWavesAmount)
738+ let newGlobalStawPL = (globalStawPL - newStawLPAmount)
739+ let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend)
740+ let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP)
741+ let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP)
742+ let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP)
743+ let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP)
744+ let daysAfterLockPeriodElaspedEntry = makeString(["%d", toString(daysAfterLockPeriodElasped)], SEP)
745+[leaseAction._1, leaseAction._2, _writeStr(wavesAmountKey, wavesAmountEntry), _writeStr(stawLPAmountKey, stawLPAmountEntry), _writeStr(totalWavesClaimedKey, totalWavesClaimedEntry), _writeStr(userTotalWavesLockedKey, newUserTotalWavesLockedEntry), _writeStr(daysAfterLockPeriodElaspedKey, daysAfterLockPeriodElaspedEntry), _writeGlobalParam(_totalWavesRef, newGlobalWaveRef), _writeGlobalParam(_totalStawLP, newGlobalStawPL), ScriptTransfer(Address(i.caller.bytes), claimAmountToSend, unit)]
746+ }
747+ else throw("Strict value is not equal to itself.")
748+ }
749+ else throw("Strict value is not equal to itself.")
750+ }
738751 }
739752 if ((claimAction == claimAction))
740753 then claimAction
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"
76+
77+let _daysAfterLockPeriod = "DaysAfterLockPeriodElasped"
7678
7779 func _getI (key) = getInteger(this, key)
7880
7981
8082 func _getS (key) = getString(this, key)
8183
8284
8385 func _getB (key) = getBoolean(this, key)
8486
8587
8688 func _getBV (key) = value(getBoolean(this, key))
8789
8890
8991 func _getIV (key) = value(getInteger(this, key))
9092
9193
9294 func _getSV (key) = value(getString(this, key))
9395
9496
9597 func _setParamVal (key,defaultVal) = match defaultVal {
9698 case defaultVal: String =>
9799 if (isDefined(_getS(key)))
98100 then _getSV(key)
99101 else defaultVal
100102 case defaultVal: Int =>
101103 if (isDefined(_getI(key)))
102104 then _getIV(key)
103105 else defaultVal
104106 case defaultVal: Boolean =>
105107 if (isDefined(_getB(key)))
106108 then _getBV(key)
107109 else defaultVal
108110 case _ =>
109111 throw(("value type not supported for " + key))
110112 }
111113
112114
113115 func _throwOrReturnS (val,error) = match val {
114116 case val: String =>
115117 val
116118 case _ =>
117119 throw(error)
118120 }
119121
120122
121123 func _throwOrReturnI (val,error) = match val {
122124 case val: Int =>
123125 val
124126 case _ =>
125127 throw(error)
126128 }
127129
128130
129131 func _throwOrReturnBool (val,error) = match val {
130132 case val: Boolean =>
131133 val
132134 case _ =>
133135 throw(error)
134136 }
135137
136138
137139 func _writeInt (key,value) = if ((0 > value))
138140 then throw(((("writing negative value " + toString(value)) + " for key ") + key))
139141 else IntegerEntry(key, value)
140142
141143
142144 func _writeStr (key,value) = if ((" " == value))
143145 then throw(("writing an empty string " + value))
144146 else StringEntry(key, value)
145147
146148
147149 func _throwIf (condition,error) = if (condition)
148150 then throw(error)
149151 else true
150152
151153
152154 func _writeGlobalParam (key,_value) = match _value {
153155 case _value: Int =>
154156 let entry = makeString(["%d", toString(_value)], SEP)
155157 _writeStr(key, entry)
156158 case _value: String =>
157159 let entry = makeString(["%s", _value], SEP)
158160 _writeStr(key, entry)
159161 case _value: Boolean =>
160162 let entry = makeString(["%b", toString(_value)], SEP)
161163 _writeStr(key, entry)
162164 case _ =>
163165 throw("type not supported")
164166 }
165167
166168
167169 func _getRegistryEntryValue (key) = {
168170 let _rawValue = _throwOrReturnS(_getS(key), ("entry not found for " + key))
169171 if ((_rawValue == _rawValue))
170172 then {
171173 let x = split(_rawValue, SEP)
172174 let formatSpecifier = takeRight(x[0], 1)
173175 let _valueString = x[(size(x) - 1)]
174176 let _value = if ((formatSpecifier == "s"))
175177 then _valueString
176178 else if ((formatSpecifier == "d"))
177179 then parseIntValue(_valueString)
178180 else if ((formatSpecifier == "b"))
179181 then fromBase58String(_valueString)
180182 else throw(("could not parse registry value for " + key))
181183 _value
182184 }
183185 else throw("Strict value is not equal to itself.")
184186 }
185187
186188
187189 func _daysToMiliSec (days) = {
188190 let check = _throwIf((0 >= days), "invalid locking days!")
189191 if ((check == check))
190192 then (days * _Dt)
191193 else throw("Strict value is not equal to itself.")
192194 }
193195
194196
195197 func _writeConstString (key,value) = if (!(isDefined(_getS(key))))
196198 then _writeStr(key, value)
197199 else throw(("entry already initialized: " + key))
198200
199201
200202 func _writeConstInteger (key,value) = if (!(isDefined(_getS(key))))
201203 then _writeInt(key, value)
202204 else throw((" entry already initialized: " + key))
203205
204206
205207 func _onlyManager (i) = {
206208 let manager = match _getRegistryEntryValue(_manager) {
207209 case val: String =>
208210 val
209211 case _ =>
210212 "failed to get manager"
211213 }
212214 if ((manager == manager))
213215 then _throwIf((toBase58String(i.caller.bytes) != manager), "address not authorized")
214216 else throw("Strict value is not equal to itself.")
215217 }
216218
217219
218220 func _abs (val) = if ((0 > val))
219221 then -(val)
220222 else val
221223
222224
223225 func _validateAddress (address,errorMsg) = match address {
224226 case address: String =>
225227 let _address = addressFromString(address)
226228 match _address {
227229 case _address: Address =>
228230 true
229231 case _ =>
230232 match errorMsg {
231233 case msg: String =>
232234 throw(msg)
233235 case _ =>
234236 false
235237 }
236238 }
237239 case address: ByteVector =>
238240 let _address = addressFromPublicKey(address)
239241 match _address {
240242 case _address: Address =>
241243 true
242244 case _ =>
243245 match errorMsg {
244246 case msg: String =>
245247 throw(msg)
246248 case _ =>
247249 false
248250 }
249251 }
250252 case _ =>
251253 throw("invalid input type")
252254 }
253255
254256
255257 func _validateAsset (assetID,errorMsg) = match assetInfo(fromBase58String(assetID)) {
256258 case asset: Asset =>
257259 true
258260 case _ =>
259261 match errorMsg {
260262 case msg: String =>
261263 throw(msg)
262264 case _ =>
263265 false
264266 }
265267 }
266268
267269
268270 func _computeMr () = {
269271 let currentCircIndex = match _getRegistryEntryValue(_circulationIncrIndex) {
270272 case t: Int =>
271273 t
272274 case _ =>
273275 throw("circulation index not previously defined")
274276 }
275277 if ((currentCircIndex == currentCircIndex))
276278 then {
277279 let stawAssetId = match _getRegistryEntryValue(_stawAssetId) {
278280 case t: String =>
279281 t
280282 case _ =>
281283 throw("asset id not previously defined")
282284 }
283285 if ((stawAssetId == stawAssetId))
284286 then {
285287 let stawCirculatingSupply = match assetInfo(fromBase58String(stawAssetId)) {
286288 case asset: Asset =>
287289 asset.quantity
288290 case _ =>
289291 throw(("asset not found for " + stawAssetId))
290292 }
291293 let unitIncrement = (_abs((stawCirculatingSupply - _incrementRef)) / _incrementRef)
292294 let newCirculationIncrIndex = if ((unitIncrement > currentCircIndex))
293295 then (unitIncrement + currentCircIndex)
294296 else currentCircIndex
295297 let currentMr = match _getRegistryEntryValue(_Mr) {
296298 case t: Int =>
297299 t
298300 case _ =>
299301 throw("failed to get miniting rate")
300302 }
301303 if ((newCirculationIncrIndex == currentCircIndex))
302304 then $Tuple2(currentMr, nil)
303305 else {
304306 let newreductionFactor = match _getRegistryEntryValue(_percentageReductionFactor) {
305307 case t: Int =>
306308 t
307309 case _ =>
308310 throw("failed to get percentage reduction factor")
309311 }
310312 let newCurrentMr = (currentMr - fraction(currentMr, newreductionFactor, 100))
311313 let store1 = _writeGlobalParam(_Mr, newCurrentMr)
312314 let store2 = _writeGlobalParam(_percentageReductionFactor, newreductionFactor)
313315 let store3 = _writeGlobalParam(_circulationIncrIndex, newCirculationIncrIndex)
314316 $Tuple2(newCurrentMr, [store1, store2, store3])
315317 }
316318 }
317319 else throw("Strict value is not equal to itself.")
318320 }
319321 else throw("Strict value is not equal to itself.")
320322 }
321323
322324
323325 func _updateGlobalEntry (wavesAmount,stawAmount,stawPL,indexCount) = {
324326 let _newGlobalTotalWavesAmtRef = match _getRegistryEntryValue(_totalWavesRef) {
325327 case t: Int =>
326328 (t + wavesAmount)
327329 case _ =>
328330 throw("failed to get global total waves")
329331 }
330332 if ((_newGlobalTotalWavesAmtRef == _newGlobalTotalWavesAmtRef))
331333 then {
332334 let _newGlobalTotalStawMinted = match _getRegistryEntryValue(_totalStaw) {
333335 case t: Int =>
334336 (t + stawAmount)
335337 case _ =>
336338 throw("failed to get global total staw minted")
337339 }
338340 if ((_newGlobalTotalStawMinted == _newGlobalTotalStawMinted))
339341 then {
340342 let _newGlobalTotalStawPL = match _getRegistryEntryValue(_totalStawLP) {
341343 case t: Int =>
342344 (t + stawPL)
343345 case _ =>
344346 throw("failed to get global total stawpl")
345347 }
346348 if ((_newGlobalTotalStawPL == _newGlobalTotalStawPL))
347349 then {
348350 let _newGlobaIndexCount = match _getRegistryEntryValue(_globalIndexCount) {
349351 case t: Int =>
350352 (t + indexCount)
351353 case _ =>
352354 throw("failed to get global index count")
353355 }
354356 if ((_newGlobaIndexCount == _newGlobaIndexCount))
355357 then [_writeGlobalParam(_totalWavesRef, _newGlobalTotalWavesAmtRef), _writeGlobalParam(_totalStaw, _newGlobalTotalStawMinted), _writeGlobalParam(_totalStawLP, _newGlobalTotalStawPL), _writeGlobalParam(_globalIndexCount, _newGlobaIndexCount)]
356358 else throw("Strict value is not equal to itself.")
357359 }
358360 else throw("Strict value is not equal to itself.")
359361 }
360362 else throw("Strict value is not equal to itself.")
361363 }
362364 else throw("Strict value is not equal to itself.")
363365 }
364366
365367
366368 func _registerUserEntry (transactionID,userAddress,lockDuration,lockDurationInMili,lockIndex,wavesAmount,stawAmount,stawLPAmount,lockAtHeight,lockId,totalLocked,localIndexCount,leaseState) = {
367369 let _txIdKey = makeString([userAddress, transactionID, _txId], SEP)
368370 let _lockDurationKey = makeString([userAddress, transactionID, _lockDuration], SEP)
369371 let _lockIndexKey = makeString([userAddress, transactionID, _lockIndex], SEP)
370372 let _wavesAmountKey = makeString([userAddress, transactionID, _wavesAmount], SEP)
371373 let _stawAmountKey = makeString([userAddress, transactionID, _stawAmount], SEP)
372374 let _stawLPAmountKey = makeString([userAddress, transactionID, _stawLPAmount], SEP)
373375 let _lockAtHeightKey = makeString([userAddress, transactionID, _lockAtHeight], SEP)
374376 let _lockIdKey = makeString([userAddress, transactionID, _lockId], SEP)
375377 let _totalLockedKey = makeString([userAddress, _userTotalLocked], SEP)
376378 let _localLockIndexKey = makeString([userAddress, _userLocalIndexCount], SEP)
377379 let _lockPeriodInMiliSecKey = makeString([userAddress, transactionID, _lockPeriodInMiliSec], SEP)
378380 let _totalWavesClaimedKey = makeString([userAddress, transactionID, _totalWavesClaimed], SEP)
379381 let _userLeaseStateKey = makeString([userAddress, transactionID, _userLeaseState], SEP)
380382 let trxIdEntry = makeString(["%s", transactionID], SEP)
381383 let lockDurationEntry = makeString(["%d", toString(lockDuration)], SEP)
382384 let lockIndexEntry = makeString(["%d", toString(lockIndex)], SEP)
383385 let wavesAmountEntry = makeString(["%d", toString(wavesAmount)], SEP)
384386 let stawAmountEntry = makeString(["%d", toString(stawAmount)], SEP)
385387 let stawLPAmountEntry = makeString(["%d", toString(stawLPAmount)], SEP)
386388 let lockAtHeightEntry = makeString(["%d", toString(lockAtHeight)], SEP)
387389 let lockIdEntry = makeString(["%b", lockId], SEP)
388390 let totalLockedEntry = makeString(["%d", toString(totalLocked)], SEP)
389391 let userLocalIndexEntry = makeString(["%d", toString(localIndexCount)], SEP)
390392 let lockPeriodInMiliSecEntry = makeString(["%d", toString(lockDurationInMili)], SEP)
391393 let totalWavesClaimedEntry = makeString(["%d", toString(0)], SEP)
392394 let userLeaseStateEntry = makeString(["%s", leaseState], SEP)
393395 [_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)]
394396 }
395397
396398
397399 func _stawMF (lockPeriod,collateralWaves) = {
398400 let _adjustedMr = _computeMr()
399401 let ret = fraction(collateralWaves, (_Dt * _adjustedMr._1), _Ppy(lockPeriod))
400402 if ((size(_adjustedMr._2) == 0))
401403 then $Tuple2(ret, nil)
402404 else $Tuple2(ret, _adjustedMr._2)
403405 }
404406
405407
406408 func _emissionRateWaves (lockPeriod,collateral) = {
407409 let extensionFactor = fraction(lockPeriod, 15, 10)
408410 fraction(collateral, ((lockPeriod * extensionFactor) - lockPeriod), _Dt)
409411 }
410412
411413
412414 func _incrTotalStawLP (amount) = {
413415 let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP")
414416 [_writeInt(_totalStawLP, (oldStawLP + amount))]
415417 }
416418
417419
418420 func _decrTotalStawLP (amount) = {
419421 let oldStawLP = _throwOrReturnI(_getI(_totalStawLP), "could not get the running StawLP")
420422 [_writeInt(_totalStawLP, (oldStawLP - amount))]
421423 }
422424
423425
424426 func _incrTotalWavesRef (amount) = {
425427 let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves")
426428 [_writeInt(_totalWavesRef, (oldWavesRef + amount))]
427429 }
428430
429431
430432 func _decrTotalWavesRef (amount) = {
431433 let oldWavesRef = _throwOrReturnI(_getI(_totalWavesRef), "could not get total locked waves")
432434 [_writeInt(_totalWavesRef, (oldWavesRef - amount))]
433435 }
434436
435437
436438 func _getNewTimeStamp (blockHeight) = {
437439 let time = match blockInfoByHeight(blockHeight) {
438440 case timeInfo: BlockInfo =>
439441 timeInfo.timestamp
440442 case _ =>
441443 throw("counld get timestamp")
442444 }
443445 time
444446 }
445447
446448
447449 @Callable(i)
448450 func getEmission (lockPeriod,collateral) = {
449451 let check1 = _onlyManager(i)
450452 if ((check1 == check1))
451453 then $Tuple2(nil, _emissionRateWaves(lockPeriod, collateral))
452454 else throw("Strict value is not equal to itself.")
453455 }
454456
455457
456458
457459 @Callable(i)
458460 func init (manager,dfx,assetID,leaseNode) = {
459461 let managerAlreadyExists = if (isDefined(_getS(_manager)))
460462 then _onlyManager(i)
461463 else true
462464 if ((managerAlreadyExists == managerAlreadyExists))
463465 then {
464466 let check1 = _validateAddress(manager, "invalid address")
465467 if ((check1 == check1))
466468 then {
467469 let check2 = _validateAddress(dfx, "invalid address")
468470 if ((check2 == check2))
469471 then {
470472 let check3 = _validateAddress(leaseNode, "invalid address")
471473 if ((check3 == check3))
472474 then {
473475 let check4 = if (_validateAsset(assetID, "invalid asset"))
474476 then true
475477 else throw("invalid asset Id")
476478 if ((check4 == check4))
477479 then {
478480 let circulationIndex = _setParamVal(_circulationIncrIndex, 0)
479481 let percentageReductionInMr = _setParamVal(_percentageReductionFactor, 0)
480482 let Mr = _setParamVal(_Mr, _unitDecimals)
481483 let totalStawMinted = _setParamVal(_totalStaw, 0)
482484 let totalStawLPInCirculation = _setParamVal(_totalStawLP, 0)
483485 let globalIndexCount = _setParamVal(_globalIndexCount, 0)
484486 let totalWavesRef = _setParamVal(_totalWavesRef, 0)
485487 [_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), _writeGlobalParam(_globalIndexCount, globalIndexCount)]
486488 }
487489 else throw("Strict value is not equal to itself.")
488490 }
489491 else throw("Strict value is not equal to itself.")
490492 }
491493 else throw("Strict value is not equal to itself.")
492494 }
493495 else throw("Strict value is not equal to itself.")
494496 }
495497 else throw("Strict value is not equal to itself.")
496498 }
497499
498500
499501
500502 @Callable(i)
501503 func modifyGlobalParams (val) = {
502504 let check1 = _onlyManager(i)
503505 if ((check1 == check1))
504506 then {
505507 let errorMsg = makeString(["got", "list size of", toString(size(val)), "but expected [global_key, value] pair"], " ")
506508 let check2 = _throwIf((size(val) != 2), errorMsg)
507509 if ((check2 == check2))
508510 then {
509511 let key = val[0]
510512 let valType = parseInt(val[1])
511513 match valType {
512514 case x: Int =>
513515 let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
514516 if ((validateKey == validateKey))
515517 then {
516518 let ensureValidPairs = match _getRegistryEntryValue(key) {
517519 case t: Int =>
518520 true
519521 case _ =>
520522 throw("invalid key-value pair")
521523 }
522524 if ((ensureValidPairs == ensureValidPairs))
523525 then [_writeGlobalParam(key, x)]
524526 else throw("Strict value is not equal to itself.")
525527 }
526528 else throw("Strict value is not equal to itself.")
527529 case x: Unit =>
528530 let validateKey = _throwIf((_getS(key) == unit), (("key " + key) + " not recognized"))
529531 if ((validateKey == validateKey))
530532 then {
531533 let stringValue = val[1]
532534 let refAddress = _getRegistryEntryValue(_manager)
533535 let check4 = match refAddress {
534536 case strType: String =>
535537 if ((size(strType) == size(stringValue)))
536538 then _validateAddress(stringValue, "string type for value not supported")
537539 else _validateAsset(stringValue, "string type for value not supported")
538540 case _ =>
539541 false
540542 }
541543 if ((check4 == check4))
542544 then [_writeGlobalParam(key, stringValue)]
543545 else throw("Strict value is not equal to itself.")
544546 }
545547 else throw("Strict value is not equal to itself.")
546548 case _ =>
547549 throw(("failed to modify " + val[0]))
548550 }
549551 }
550552 else throw("Strict value is not equal to itself.")
551553 }
552554 else throw("Strict value is not equal to itself.")
553555 }
554556
555557
556558
557559 @Callable(i)
558560 func revokeLock () = {
559561 let check1 = _onlyManager(i)
560562 if ((check1 == check1))
561563 then nil
562564 else throw("Strict value is not equal to itself.")
563565 }
564566
565567
566568
567569 @Callable(i)
568570 func claim (transactionID) = {
569571 let callerAddress = toBase58String(i.caller.bytes)
570572 let collateralKey = makeString([callerAddress, transactionID, _wavesAmount], SEP)
571573 let lockperiodKey = makeString([callerAddress, transactionID, _lockDuration], SEP)
572574 let lockIdKey = makeString([callerAddress, transactionID, _lockId], SEP)
573575 let lockperiodInMiliKey = makeString([callerAddress, transactionID, _lockPeriodInMiliSec], SEP)
574576 let totalWavesClaimedKey = makeString([callerAddress, transactionID, _totalWavesClaimed], SEP)
575577 let stawLPAmountKey = makeString([callerAddress, transactionID, _stawLPAmount], SEP)
576578 let wavesAmountKey = makeString([callerAddress, transactionID, _wavesAmount], SEP)
577579 let userTotalWavesLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
578580 let userLeaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
579581 let leaseStateKey = makeString([callerAddress, transactionID, _userLeaseState], SEP)
582+ let daysAfterLockPeriodElaspedKey = makeString([callerAddress, transactionID, _daysAfterLockPeriod], SEP)
580583 let globalWavesRef = match _getRegistryEntryValue(_totalWavesRef) {
581584 case t: Int =>
582585 t
583586 case _ =>
584587 throw("failed to get global total waves")
585588 }
586589 if ((globalWavesRef == globalWavesRef))
587590 then {
588591 let globalStawPL = match _getRegistryEntryValue(_totalStawLP) {
589592 case t: Int =>
590593 t
591594 case _ =>
592595 throw("failed to get global total waves")
593596 }
594597 if ((globalStawPL == globalStawPL))
595598 then {
596599 let lockId = match _getRegistryEntryValue(lockIdKey) {
597600 case t: ByteVector =>
598601 t
599602 case _ =>
600603 throw("failed to get lease id")
601604 }
602605 if ((lockId == lockId))
603606 then {
604607 let userTotalWavesLocked = match _getRegistryEntryValue(userTotalWavesLockedKey) {
605608 case t: Int =>
606609 t
607610 case _ =>
608611 throw("failed to get total waves locked by this address")
609612 }
610613 if ((userTotalWavesLocked == userTotalWavesLocked))
611614 then {
612615 let wavesAmount = match _getRegistryEntryValue(wavesAmountKey) {
613616 case t: Int =>
614617 t
615618 case _ =>
616619 throw("failed to get total waves locked")
617620 }
618621 if ((wavesAmount == wavesAmount))
619622 then {
620623 let totalWavesClaimed = match _getRegistryEntryValue(totalWavesClaimedKey) {
621624 case t: Int =>
622625 t
623626 case _ =>
624627 throw("failed to get total waves claimed")
625628 }
626629 if ((totalWavesClaimed == totalWavesClaimed))
627630 then {
628631 let stawLPAmount = match _getRegistryEntryValue(stawLPAmountKey) {
629632 case t: Int =>
630633 t
631634 case _ =>
632635 throw("failed to get stawPL")
633636 }
634637 if ((stawLPAmount == stawLPAmount))
635638 then {
636639 let lockPeriodInMili = match _getRegistryEntryValue(lockperiodInMiliKey) {
637640 case t: Int =>
638641 t
639642 case _ =>
640643 throw("failed to get lock period timespam")
641644 }
642645 if ((lockPeriodInMili == lockPeriodInMili))
643646 then {
644647 let currentTimeStamp = match _getNewTimeStamp(height) {
645648 case t: Int =>
646649 t
647650 case _ =>
648651 throw("failed to get current timestamp")
649652 }
650653 if ((currentTimeStamp == currentTimeStamp))
651654 then {
652655 let collateral = match _getRegistryEntryValue(collateralKey) {
653656 case t: Int =>
654657 t
655658 case _ =>
656659 throw("failed to get collateral")
657660 }
658661 if ((collateral == collateral))
659662 then {
660663 let lockPeriod = match _getRegistryEntryValue(lockperiodKey) {
661664 case t: Int =>
662665 t
663666 case _ =>
664667 throw("failed to get lockPeriod")
665668 }
666669 if ((lockPeriod == lockPeriod))
667670 then {
668671 let currentLeaseState = match _getRegistryEntryValue(userLeaseStateKey) {
669672 case t: String =>
670673 t
671674 case _ =>
672675 throw("failed to get lease state")
673676 }
674677 if ((currentLeaseState == currentLeaseState))
675678 then {
676679 let leaseState = match _getRegistryEntryValue(leaseStateKey) {
677680 case t: String =>
678681 t
679682 case _ =>
680683 throw("failed to get lease state for user")
681684 }
682685 if ((leaseState == leaseState))
683686 then {
684- let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed")
685- if ((check1 == check1))
687+ let daysAfterLockPeriodElasped = match _getS(daysAfterLockPeriodElaspedKey) {
688+ case t: String =>
689+ match _getRegistryEntryValue(daysAfterLockPeriodElaspedKey) {
690+ case z: Int =>
691+ z
692+ case _ =>
693+ 0
694+ }
695+ case _ =>
696+ 0
697+ }
698+ if ((daysAfterLockPeriodElasped == daysAfterLockPeriodElasped))
686699 then {
687- let leaseAction = if ((currentLeaseState == "leased"))
688- then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled"))
689- else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled"))
690- if ((leaseAction == leaseAction))
700+ let check1 = _throwIf((lockPeriodInMili > currentTimeStamp), "lock period for this entry has not elapsed")
701+ if ((check1 == check1))
691702 then {
703+ let leaseAction = if ((currentLeaseState == "leased"))
704+ then $Tuple2(LeaseCancel(lockId), _writeStr(userLeaseStateKey, "cancelled"))
705+ else $Tuple2(_writeStr(userLeaseStateKey, "cancelled"), _writeStr(userLeaseStateKey, "cancelled"))
692706 let check2 = _throwIf(if ((0 == wavesAmount))
693707 then true
694708 else (0 == stawLPAmount), "all claims exhausted for this trx")
695709 if ((check2 == check2))
696710 then {
697711 let emissionValuePerDT = (_emissionRateWaves(lockPeriod, collateral) * _Dt)
698712 let claimAction = {
699713 let timeStampDiff = (currentTimeStamp - lockPeriodInMili)
700- let daysAfterLockPeriodElasped = (timeStampDiff / _Dt)
714+ let xdays = (timeStampDiff / _Dt)
701715 if ((daysAfterLockPeriodElasped == 0))
702716 then throw("less than 24hrs before first claim")
703- else if (((timeStampDiff % _Dt) != 0))
704- then throw("already claimed or less than 24hrs before next claim")
705- else if ((daysAfterLockPeriodElasped > lockPeriod))
706- then throw("all claims exhausted")
707- else {
708- let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT)
709- let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs")
710- if ((check3_1 == check3_1))
711- then {
712- let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted")
713- if ((check3_2 == check3_2))
714- then {
715- let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1))
716- then totalAmountClaimable
717- else (totalAmountClaimable - totalWavesClaimed)
718- let newTotalWavesClaim = totalAmountClaimable
719- let newWavesAmount = if ((daysAfterLockPeriodElasped == 1))
720- then (wavesAmount - totalAmountClaimable)
721- else (wavesAmount - (totalAmountClaimable - totalWavesClaimed))
722- let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1))
723- then (stawLPAmount - totalAmountClaimable)
724- else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed))
725- let newGlobalWaveRef = (globalWavesRef - newWavesAmount)
726- let newGlobalStawPL = (globalStawPL - newStawLPAmount)
727- let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend)
728- let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP)
729- let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP)
730- let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP)
731- let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP)
732-[leaseAction._1, leaseAction._2, _writeStr(wavesAmountKey, wavesAmountEntry), _writeStr(stawLPAmountKey, stawLPAmountEntry), _writeStr(totalWavesClaimedKey, totalWavesClaimedEntry), _writeStr(userTotalWavesLockedKey, newUserTotalWavesLockedEntry), _writeGlobalParam(_totalWavesRef, newGlobalWaveRef), _writeGlobalParam(_totalStawLP, newGlobalStawPL), ScriptTransfer(Address(i.caller.bytes), claimAmountToSend, unit)]
733- }
734- else throw("Strict value is not equal to itself.")
735- }
736- else throw("Strict value is not equal to itself.")
737- }
717+ else if ((daysAfterLockPeriodElasped >= xdays))
718+ then throw("24hrs or less before next claim")
719+ else {
720+ let totalAmountClaimable = (daysAfterLockPeriodElasped * emissionValuePerDT)
721+ let check3_1 = _throwIf((totalAmountClaimable == totalWavesClaimed), "can only claim once in 24hrs")
722+ if ((check3_1 == check3_1))
723+ then {
724+ let check3_2 = _throwIf(((totalAmountClaimable + totalWavesClaimed) > wavesAmount), "all claims exhausted")
725+ if ((check3_2 == check3_2))
726+ then {
727+ let claimAmountToSend = if ((daysAfterLockPeriodElasped == 1))
728+ then totalAmountClaimable
729+ else (totalAmountClaimable - totalWavesClaimed)
730+ let newTotalWavesClaim = totalAmountClaimable
731+ let newWavesAmount = if ((daysAfterLockPeriodElasped == 1))
732+ then (wavesAmount - totalAmountClaimable)
733+ else (wavesAmount - (totalAmountClaimable - totalWavesClaimed))
734+ let newStawLPAmount = if ((daysAfterLockPeriodElasped == 1))
735+ then (stawLPAmount - totalAmountClaimable)
736+ else (stawLPAmount - (totalAmountClaimable - totalWavesClaimed))
737+ let newGlobalWaveRef = (globalWavesRef - newWavesAmount)
738+ let newGlobalStawPL = (globalStawPL - newStawLPAmount)
739+ let newUserTotalWavesLocked = (userTotalWavesLocked - claimAmountToSend)
740+ let wavesAmountEntry = makeString(["%d", toString(newWavesAmount)], SEP)
741+ let stawLPAmountEntry = makeString(["%d", toString(newStawLPAmount)], SEP)
742+ let totalWavesClaimedEntry = makeString(["%d", toString(newTotalWavesClaim)], SEP)
743+ let newUserTotalWavesLockedEntry = makeString(["%d", toString(newUserTotalWavesLocked)], SEP)
744+ let daysAfterLockPeriodElaspedEntry = makeString(["%d", toString(daysAfterLockPeriodElasped)], SEP)
745+[leaseAction._1, leaseAction._2, _writeStr(wavesAmountKey, wavesAmountEntry), _writeStr(stawLPAmountKey, stawLPAmountEntry), _writeStr(totalWavesClaimedKey, totalWavesClaimedEntry), _writeStr(userTotalWavesLockedKey, newUserTotalWavesLockedEntry), _writeStr(daysAfterLockPeriodElaspedKey, daysAfterLockPeriodElaspedEntry), _writeGlobalParam(_totalWavesRef, newGlobalWaveRef), _writeGlobalParam(_totalStawLP, newGlobalStawPL), ScriptTransfer(Address(i.caller.bytes), claimAmountToSend, unit)]
746+ }
747+ else throw("Strict value is not equal to itself.")
748+ }
749+ else throw("Strict value is not equal to itself.")
750+ }
738751 }
739752 if ((claimAction == claimAction))
740753 then claimAction
741754 else throw("Strict value is not equal to itself.")
742755 }
743756 else throw("Strict value is not equal to itself.")
744757 }
745758 else throw("Strict value is not equal to itself.")
746759 }
747760 else throw("Strict value is not equal to itself.")
748761 }
749762 else throw("Strict value is not equal to itself.")
750763 }
751764 else throw("Strict value is not equal to itself.")
752765 }
753766 else throw("Strict value is not equal to itself.")
754767 }
755768 else throw("Strict value is not equal to itself.")
756769 }
757770 else throw("Strict value is not equal to itself.")
758771 }
759772 else throw("Strict value is not equal to itself.")
760773 }
761774 else throw("Strict value is not equal to itself.")
762775 }
763776 else throw("Strict value is not equal to itself.")
764777 }
765778 else throw("Strict value is not equal to itself.")
766779 }
767780 else throw("Strict value is not equal to itself.")
768781 }
769782 else throw("Strict value is not equal to itself.")
770783 }
771784 else throw("Strict value is not equal to itself.")
772785 }
773786 else throw("Strict value is not equal to itself.")
774787 }
775788
776789
777790
778791 @Callable(i)
779792 func mintStaw (lockPeriod) = {
780793 let callerAddress = toBase58String(i.caller.bytes)
781794 let trxID = toBase58String(i.transactionId)
782795 let check1 = _throwIf((1 != size(i.payments)), "no payments attached")
783796 if ((check1 == check1))
784797 then {
785798 let check2 = if (isDefined(i.payments[0].assetId))
786799 then throw("only waves supported")
787800 else true
788801 if ((check2 == check2))
789802 then {
790803 let amountInWaves = i.payments[0].amount
791804 let check3 = if (if ((_minLockAmount > amountInWaves))
792805 then true
793806 else (amountInWaves > _maxLockAmount))
794807 then throw("lock amount out of range, minimum: 1 waves, maximum: 1000 waves")
795808 else true
796809 if ((check3 == check3))
797810 then {
798811 let check4 = if ((_minLockperiod > lockPeriod))
799812 then throw("minimum of 14 days lock period")
800813 else true
801814 if ((check4 == check4))
802815 then {
803816 let totalStawMint = _stawMF(lockPeriod, amountInWaves)
804817 let stawPL = amountInWaves
805818 let fee = fraction(totalStawMint._1, 10, 100)
806819 let userGetStawAmount = (totalStawMint._1 - fee)
807820 let lockPeriodToMilisec = (_getNewTimeStamp(height) + _daysToMiliSec(lockPeriod))
808821 if ((lockPeriodToMilisec == lockPeriodToMilisec))
809822 then {
810823 let new_index = match _getRegistryEntryValue(_globalIndexCount) {
811824 case t: Int =>
812825 (t + 1)
813826 case _ =>
814827 throw("failed to get current global index count")
815828 }
816829 if ((new_index == new_index))
817830 then {
818831 let addressFee = match _getRegistryEntryValue(_Dfx) {
819832 case t: String =>
820833 Address(fromBase58String(t))
821834 case _ =>
822835 throw("failed to get dfx address")
823836 }
824837 if ((addressFee == addressFee))
825838 then {
826839 let stawAssetId = match _getRegistryEntryValue(_stawAssetId) {
827840 case t: String =>
828841 fromBase58String(t)
829842 case _ =>
830843 throw("failed to get asset id")
831844 }
832845 if ((stawAssetId == stawAssetId))
833846 then {
834847 let lessee = match _getRegistryEntryValue(_lesseeAddress) {
835848 case t: String =>
836849 Address(fromBase58String(t))
837850 case _ =>
838851 throw("failed to get lease node address")
839852 }
840853 if ((lessee == lessee))
841854 then {
842855 let userLockIndexKey = makeString([callerAddress, _userLocalIndexCount], SEP)
843856 let userTotalLockedKey = makeString([callerAddress, _userTotalLocked], SEP)
844857 let userIndexCount = match _getS(userLockIndexKey) {
845858 case x: String =>
846859 match _getRegistryEntryValue(userLockIndexKey) {
847860 case t: Int =>
848861 (t + 1)
849862 case _ =>
850863 0
851864 }
852865 case _ =>
853866 0
854867 }
855868 if ((userIndexCount == userIndexCount))
856869 then {
857870 let userTotalLocked = match _getS(userTotalLockedKey) {
858871 case x: String =>
859872 match _getRegistryEntryValue(userTotalLockedKey) {
860873 case t: Int =>
861874 (t + amountInWaves)
862875 case _ =>
863876 amountInWaves
864877 }
865878 case _ =>
866879 amountInWaves
867880 }
868881 if ((userTotalLocked == userTotalLocked))
869882 then {
870883 let leaseOut = Lease(lessee, amountInWaves)
871884 let leaseIdStr = toBase58String(calculateLeaseId(leaseOut))
872885 ((([leaseOut, ScriptTransfer(addressFee, fee, stawAssetId), ScriptTransfer(Address(i.caller.bytes), userGetStawAmount, stawAssetId)] ++ _registerUserEntry(trxID, callerAddress, lockPeriod, lockPeriodToMilisec, new_index, amountInWaves, userGetStawAmount, stawPL, height, leaseIdStr, userTotalLocked, userIndexCount, "leased")) ++ _updateGlobalEntry(amountInWaves, totalStawMint._1, stawPL, new_index)) ++ totalStawMint._2)
873886 }
874887 else throw("Strict value is not equal to itself.")
875888 }
876889 else throw("Strict value is not equal to itself.")
877890 }
878891 else throw("Strict value is not equal to itself.")
879892 }
880893 else throw("Strict value is not equal to itself.")
881894 }
882895 else throw("Strict value is not equal to itself.")
883896 }
884897 else throw("Strict value is not equal to itself.")
885898 }
886899 else throw("Strict value is not equal to itself.")
887900 }
888901 else throw("Strict value is not equal to itself.")
889902 }
890903 else throw("Strict value is not equal to itself.")
891904 }
892905 else throw("Strict value is not equal to itself.")
893906 }
894907 else throw("Strict value is not equal to itself.")
895908 }
896909
897910

github/deemru/w8io/169f3d6 
154.92 ms