tx · 4NdZVT5TqqUqQVVYoF2PB4hRrXjeTdxvhchn2KA1WptP

3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h:  -0.01300000 Waves

2024.02.19 13:42 [2983018] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves

{ "type": 13, "id": "4NdZVT5TqqUqQVVYoF2PB4hRrXjeTdxvhchn2KA1WptP", "fee": 1300000, "feeAssetId": null, "timestamp": 1708339418255, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "4Pw1do5Em32ETEVYWLahbbTYohherRrY4Qr2ZT42RzvjLyeF6p2asmcNdhYJAUbq4VLiciDS3Ag6WuYTu1WkHNUj" ], "script": "base64:BgI0CAISAwoBARIDCgEEEgMKAQgSAwoBCBIECgIICBIDCgEIEgQKAggBEgQKAggBEgMKAQESACoADGNvbnRyYWN0RmlsZQIRbDJtcF9sZWFzaW5nLnJpZGUAA1NFUAICX18BCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAADGtleUFkbWluTGlzdAkAuQkCCQDMCAICAiVzCQDMCAICCWFkbWluTGlzdAUDbmlsBQNTRVAADGtleUZvcmNlU3RvcAkAuQkCCQDMCAICAiVzCQDMCAICCWZvcmNlU3RvcAUDbmlsBQNTRVAAEWtleVBlcmlvZE9mZnNldElkCQC5CQIJAMwIAgICJXMJAMwIAgIIb2Zmc2V0SWQFA25pbAUDU0VQABVrZXlQZXJpb2RPZmZzZXRIZWlnaHQJALkJAgkAzAgCAgIlcwkAzAgCAgxvZmZzZXRIZWlnaHQFA25pbAUDU0VQAA9rZXlQZXJpb2RMZW5ndGgJALkJAg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zAgCAwkAZgIFB3RvQ2xhaW0AAAYJAQh0aHJvd0VycgECEG5vdGhpbmcgdG8gY2xhaW0FA25pbAMJAAACBQZjaGVja3MFBmNoZWNrcwkBF2dldENsYWltVW5sb2NrZWRBY3Rpb25zAgULdXNlckFkZHJlc3MFB3RvQ2xhaW0JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AaikWrg==", "height": 2983018, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4QGBpEr1MLNb9nuazfRv9SPBRzZKUCdU3UwUCYA7JvAo Next: EfNQCoTHm9YAP7VzEjHtoExBcREZSCS4yEznwcr9z6pu Diff:
OldNewDifferences
2020
2121 let keyPeriodLength = makeString(["%s", "periodLength"], SEP)
2222
23+let keyMigrationPeriod = makeString(["%s", "migrationPeriod"], SEP)
24+
2325 let periodOffsetId = valueOrElse(getInteger(this, keyPeriodOffsetId), 0)
2426
2527 let periodLength = valueOrElse(getInteger(this, keyPeriodLength), 10000)
3537 let currentPeriodHeight = (periodOffsetHeight + ((currentPeriodId - periodOffsetId) * periodLength))
3638
3739 let nextPeriodHeight = (currentPeriodHeight + periodLength)
40+
41+let migrationPeriodHeight = valueOrElse(getInteger(this, keyMigrationPeriod), (height + 1))
3842
3943 func keyLeasingNodeData (nodeAddress) = makeString(["%s", nodeAddress], SEP)
4044
9094 let nodeCurrentLeased = parseIntValue(dataList[2])
9195 let nodeNextPeriod = parseIntValue(dataList[3])
9296 let nodeNextLeased = parseIntValue(dataList[4])
93- if ((nodeNextPeriod > height))
97+ if (if ((nodeNextPeriod > height))
98+ then true
99+ else if ((nodeNextPeriod == -1))
100+ then (migrationPeriodHeight > height)
101+ else false)
94102 then $Tuple2(nodeCurrentLeased, nodeNextLeased)
95103 else $Tuple2(nodeNextLeased, nodeNextLeased)
96104 case _ =>
114122 let userCurrentLeased = parseIntValue(dataList[2])
115123 let userNextPeriod = parseIntValue(dataList[3])
116124 let userNextLeased = parseIntValue(dataList[4])
117- if ((userNextPeriod > height))
125+ if (if ((userNextPeriod > height))
126+ then true
127+ else if ((userNextPeriod == -1))
128+ then (migrationPeriodHeight > height)
129+ else false)
118130 then $Tuple2(userCurrentLeased, userNextLeased)
119131 else $Tuple2(userNextLeased, userNextLeased)
120132 case _ =>
153165 func getUserTotalLocked (userAddress) = valueOrElse(getInteger(this, keyUserTotalLocked(userAddress)), 0)
154166
155167
156-func getStakeActions (nodeAddress,userAddress,i) = {
157- let checks = [if (!(isForceStop))
158- then true
159- else throwErr("contract is temporary stopped"), if ((size(i.payments) == 1))
160- then true
161- else throwErr("payment size should be exactly 1"), if ((i.payments[0].assetId == assetIdBytes))
162- then true
163- else throwErr(makeString(["payment assetId should be:", assetIdString], " ")), if (isValidAddress(nodeAddress))
164- then true
165- else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
166- then true
167- else throwErr(makeString(["user address is not valid:", userAddress], " "))]
168- if ((checks == checks))
169- then {
170- let userLeasingAmount = i.payments[0].amount
171- let $t066206693 = getLeasingNodeData(nodeAddress)
172- let nodeCurrentLeased = $t066206693._1
173- let nodeNextLeased = $t066206693._2
174- let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
175- let $t067616847 = getUserLeasingData(nodeAddress, userAddress)
176- let userCurrentLeased = $t067616847._1
177- let userNextLeased = $t067616847._2
178- let newUserNextLeased = (userNextLeased + userLeasingAmount)
179- let userTotalLocked = getUserTotalLocked(userAddress)
180- let newUserTotalLocked = (userTotalLocked + userLeasingAmount)
181-[getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)]
182- }
183- else throw("Strict value is not equal to itself.")
184- }
185-
186-
187168 func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = {
188- let $t075497622 = getLeasingNodeData(nodeAddress)
189- let nodeCurrentLeased = $t075497622._1
190- let nodeNextLeased = $t075497622._2
191- let $t076277713 = getUserLeasingData(nodeAddress, userAddress)
192- let userCurrentLeased = $t076277713._1
193- let userNextLeased = $t076277713._2
169+ let $t063006373 = getLeasingNodeData(nodeAddress)
170+ let nodeCurrentLeased = $t063006373._1
171+ let nodeNextLeased = $t063006373._2
172+ let $t063786464 = getUserLeasingData(nodeAddress, userAddress)
173+ let userCurrentLeased = $t063786464._1
174+ let userNextLeased = $t063786464._2
194175 let checks = [if (!(isForceStop))
195176 then true
196177 else throwErr("contract is temporary stopped"), if ((unstakeAmount > 0))
208189 then {
209190 let newNodeNextLease = (nodeNextLeased - unstakeAmount)
210191 let newUserNextLeased = (userNextLeased - unstakeAmount)
211- let $t085268586 = getUserToClaimBalance(userAddress)
212- let toClaim = $t085268586._1
213- let toUnlock = $t085268586._2
192+ let $t072777337 = getUserToClaimBalance(userAddress)
193+ let toClaim = $t072777337._1
194+ let toUnlock = $t072777337._2
214195 let newToUnlock = (toUnlock + unstakeAmount)
215196 let userTotalLocked = getUserTotalLocked(userAddress)
216197 let newUserTotalLocked = (userTotalLocked - unstakeAmount)
221202
222203
223204 func getClaimUnlockedActions (userAddress,claimAmount) = {
224- let $t093159375 = getUserToClaimBalance(userAddress)
225- let toClaim = $t093159375._1
226- let toUnlock = $t093159375._2
205+ let $t080668126 = getUserToClaimBalance(userAddress)
206+ let toClaim = $t080668126._1
207+ let toUnlock = $t080668126._2
227208 let checks = [if (!(isForceStop))
228209 then true
229210 else throwErr("contract is temporary stopped"), if ((claimAmount > 0))
242223 }
243224
244225
245-func getStakeFromUnlockedActions (nodeAddress,userAddress,userLeasingAmount,i) = {
246- let $t01014810208 = getUserToClaimBalance(userAddress)
247- let toClaim = $t01014810208._1
248- let toUnlock = $t01014810208._2
226+func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = {
227+ let $t088878947 = getUserToClaimBalance(userAddress)
228+ let toClaim = $t088878947._1
229+ let toUnlock = $t088878947._2
249230 let paymentAmount = if ((size(i.payments) == 0))
250231 then 0
251232 else i.payments[0].amount
271252 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
272253 if ((checks == checks))
273254 then {
274- let $t01125411327 = getLeasingNodeData(nodeAddress)
275- let nodeCurrentLeased = $t01125411327._1
276- let nodeNextLeased = $t01125411327._2
255+ let $t0999310066 = getLeasingNodeData(nodeAddress)
256+ let nodeCurrentLeased = $t0999310066._1
257+ let nodeNextLeased = $t0999310066._2
277258 let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
278- let $t01139511481 = getUserLeasingData(nodeAddress, userAddress)
279- let userCurrentLeased = $t01139511481._1
280- let userNextLeased = $t01139511481._2
259+ let $t01013410220 = getUserLeasingData(nodeAddress, userAddress)
260+ let userCurrentLeased = $t01013410220._1
261+ let userNextLeased = $t01013410220._2
281262 let newUserNextLeased = (userNextLeased + userLeasingAmount)
282263 let fromUnlockedAmount = (userLeasingAmount - paymentAmount)
283264 let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)])
286267 let newUserTotalLocked = (userTotalLocked + userLeasingAmount)
287268 [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, newToClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)]
288269 }
270+ else throw("Strict value is not equal to itself.")
271+ }
272+
273+
274+func getStakeFromPaymentActions (nodeAddress,userAddress,i) = {
275+ let checks = [if ((size(i.payments) == 1))
276+ then true
277+ else throwErr("payment size should be exactly 1")]
278+ if ((checks == checks))
279+ then getStakeActions(nodeAddress, userAddress, i.payments[0].amount, i)
289280 else throw("Strict value is not equal to itself.")
290281 }
291282
328319
329320 @Callable(i)
330321 func getNodeDataREADONLY (nodeAddress) = {
331- let $t01363213696 = getLeasingNodeData(nodeAddress)
332- let currentLease = $t01363213696._1
333- let nextLeased = $t01363213696._2
322+ let $t01264812712 = getLeasingNodeData(nodeAddress)
323+ let currentLease = $t01264812712._1
324+ let nextLeased = $t01264812712._2
334325 $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height))
335326 }
336327
338329
339330 @Callable(i)
340331 func getUserDataREADONLY (userAddress) = {
341- let $t01405914119 = getUserToClaimBalance(userAddress)
342- let toClaim = $t01405914119._1
343- let toUnlock = $t01405914119._2
332+ let $t01307513135 = getUserToClaimBalance(userAddress)
333+ let toClaim = $t01307513135._1
334+ let toUnlock = $t01307513135._2
344335 let userTotalLocked = getUserTotalLocked(userAddress)
345336 $Tuple2(nil, $Tuple6(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height))
346337 }
348339
349340
350341 @Callable(i)
351-func leaseByAddress (nodeAddress,userAddress) = getStakeActions(nodeAddress, userAddress, i)
342+func leaseByAddress (nodeAddress,userAddress) = getStakeFromPaymentActions(nodeAddress, userAddress, i)
352343
353344
354345
355346 @Callable(i)
356347 func lease (nodeAddress) = {
357348 let userAddress = toString(i.caller)
358- getStakeActions(nodeAddress, userAddress, i)
349+ getStakeFromPaymentActions(nodeAddress, userAddress, i)
359350 }
360351
361352
363354 @Callable(i)
364355 func leaseFromLocked (nodeAddress,amount) = {
365356 let userAddress = toString(i.caller)
366- getStakeFromUnlockedActions(nodeAddress, userAddress, amount, i)
357+ getStakeActions(nodeAddress, userAddress, amount, i)
367358 }
368359
369360
387378 @Callable(i)
388379 func claimAll () = {
389380 let userAddress = toString(i.caller)
390- let $t01512315183 = getUserToClaimBalance(userAddress)
391- let toClaim = $t01512315183._1
392- let toUnlock = $t01512315183._2
381+ let $t01414914209 = getUserToClaimBalance(userAddress)
382+ let toClaim = $t01414914209._1
383+ let toUnlock = $t01414914209._2
393384 let checks = [if ((toClaim > 0))
394385 then true
395386 else throwErr("nothing to claim")]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let contractFile = "l2mp_leasing.ride"
55
66 let SEP = "__"
77
88 func throwErr (msg) = throw(((contractFile + ": ") + msg))
99
1010
1111 let keyAssetId = makeString(["%s", "assetId"], SEP)
1212
1313 let keyAdminList = makeString(["%s", "adminList"], SEP)
1414
1515 let keyForceStop = makeString(["%s", "forceStop"], SEP)
1616
1717 let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP)
1818
1919 let keyPeriodOffsetHeight = makeString(["%s", "offsetHeight"], SEP)
2020
2121 let keyPeriodLength = makeString(["%s", "periodLength"], SEP)
2222
23+let keyMigrationPeriod = makeString(["%s", "migrationPeriod"], SEP)
24+
2325 let periodOffsetId = valueOrElse(getInteger(this, keyPeriodOffsetId), 0)
2426
2527 let periodLength = valueOrElse(getInteger(this, keyPeriodLength), 10000)
2628
2729 let periodOffsetHeight = valueOrElse(getInteger(this, keyPeriodOffsetHeight), -1)
2830
2931 let currentPeriodId = if (if ((height > periodOffsetHeight))
3032 then (periodOffsetHeight != -1)
3133 else false)
3234 then (((height - periodOffsetHeight) / periodLength) + periodOffsetId)
3335 else max([0, (periodOffsetId - 1)])
3436
3537 let currentPeriodHeight = (periodOffsetHeight + ((currentPeriodId - periodOffsetId) * periodLength))
3638
3739 let nextPeriodHeight = (currentPeriodHeight + periodLength)
40+
41+let migrationPeriodHeight = valueOrElse(getInteger(this, keyMigrationPeriod), (height + 1))
3842
3943 func keyLeasingNodeData (nodeAddress) = makeString(["%s", nodeAddress], SEP)
4044
4145
4246 func keyUserLeasingNodeData (userAddress,nodeAddress) = makeString(["%s%s", nodeAddress, userAddress], SEP)
4347
4448
4549 func keyUserToClaim (userAddress) = makeString(["%s%s", "toClaim", userAddress], SEP)
4650
4751
4852 func keyUserTotalLocked (userAddress) = makeString(["%s%s", "userTotalLocked", userAddress], SEP)
4953
5054
5155 func keyNodeLeasingByHeight (nodeAddress) = makeString(["%s%d", nodeAddress, toString(height)], SEP)
5256
5357
5458 func keyUserLeasingByHeight (nodeAddress,userAddress) = makeString(["%s%s%d", nodeAddress, userAddress, toString(height)], SEP)
5559
5660
5761 let assetIdString = valueOrElse(getString(this, keyAssetId), "WAVES")
5862
5963 let assetIdBytes = if ((assetIdString == "WAVES"))
6064 then unit
6165 else fromBase58String(assetIdString)
6266
6367 let adminListRaw = split(valueOrElse(getString(this, keyAdminList), ""), SEP)
6468
6569 let isForceStop = valueOrElse(getBoolean(this, keyForceStop), false)
6670
6771 func isAdmin (address) = containsElement(adminListRaw, address)
6872
6973
7074 func isValidAddress (address) = match addressFromString(address) {
7175 case a: Address =>
7276 true
7377 case _ =>
7478 false
7579 }
7680
7781
7882 func getLeasingNodeEntry (nodeAddress,currentLeased,nextLeased) = {
7983 let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(currentLeased), toString(nextPeriodHeight), toString(nextLeased)], SEP)
8084 StringEntry(keyLeasingNodeData(nodeAddress), valueString)
8185 }
8286
8387
8488 func getLeasingNodeData (nodeAddress) = {
8589 let leasingNodeDataStringRaw = getString(this, keyLeasingNodeData(nodeAddress))
8690 match leasingNodeDataStringRaw {
8791 case ds: String =>
8892 let dataList = split(ds, SEP)
8993 let nodeCurrentPeriod = parseIntValue(dataList[1])
9094 let nodeCurrentLeased = parseIntValue(dataList[2])
9195 let nodeNextPeriod = parseIntValue(dataList[3])
9296 let nodeNextLeased = parseIntValue(dataList[4])
93- if ((nodeNextPeriod > height))
97+ if (if ((nodeNextPeriod > height))
98+ then true
99+ else if ((nodeNextPeriod == -1))
100+ then (migrationPeriodHeight > height)
101+ else false)
94102 then $Tuple2(nodeCurrentLeased, nodeNextLeased)
95103 else $Tuple2(nodeNextLeased, nodeNextLeased)
96104 case _ =>
97105 $Tuple2(0, 0)
98106 }
99107 }
100108
101109
102110 func getUserLeasingEntry (nodeAddress,userAddress,userCurrentLeased,userNextLeased) = {
103111 let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(userCurrentLeased), toString(nextPeriodHeight), toString(userNextLeased)], SEP)
104112 StringEntry(keyUserLeasingNodeData(userAddress, nodeAddress), valueString)
105113 }
106114
107115
108116 func getUserLeasingData (nodeAddress,userAddress) = {
109117 let leasingUserDataStringRaw = getString(this, keyUserLeasingNodeData(userAddress, nodeAddress))
110118 match leasingUserDataStringRaw {
111119 case ds: String =>
112120 let dataList = split(ds, SEP)
113121 let userCurrentPeriod = parseIntValue(dataList[1])
114122 let userCurrentLeased = parseIntValue(dataList[2])
115123 let userNextPeriod = parseIntValue(dataList[3])
116124 let userNextLeased = parseIntValue(dataList[4])
117- if ((userNextPeriod > height))
125+ if (if ((userNextPeriod > height))
126+ then true
127+ else if ((userNextPeriod == -1))
128+ then (migrationPeriodHeight > height)
129+ else false)
118130 then $Tuple2(userCurrentLeased, userNextLeased)
119131 else $Tuple2(userNextLeased, userNextLeased)
120132 case _ =>
121133 $Tuple2(0, 0)
122134 }
123135 }
124136
125137
126138 func getUserToClaimEntry (userAddress,toClaim,toUnlock) = {
127139 let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(toClaim), toString(nextPeriodHeight), toString(toUnlock)], SEP)
128140 StringEntry(keyUserToClaim(userAddress), valueString)
129141 }
130142
131143
132144 func getUserToClaimBalance (userAddress) = {
133145 let userToClaimDataStringRaw = getString(this, keyUserToClaim(userAddress))
134146 match userToClaimDataStringRaw {
135147 case ds: String =>
136148 let dataList = split(ds, SEP)
137149 let currentPeriod = parseIntValue(dataList[1])
138150 let toClaim = parseIntValue(dataList[2])
139151 let nextPeriod = parseIntValue(dataList[3])
140152 let toUnlock = parseIntValue(dataList[4])
141153 if ((nextPeriod > height))
142154 then $Tuple2(toClaim, toUnlock)
143155 else $Tuple2((toClaim + toUnlock), 0)
144156 case _ =>
145157 $Tuple2(0, 0)
146158 }
147159 }
148160
149161
150162 func getUserTotalLockedEntry (userAddress,userTotalLocked) = IntegerEntry(keyUserTotalLocked(userAddress), userTotalLocked)
151163
152164
153165 func getUserTotalLocked (userAddress) = valueOrElse(getInteger(this, keyUserTotalLocked(userAddress)), 0)
154166
155167
156-func getStakeActions (nodeAddress,userAddress,i) = {
157- let checks = [if (!(isForceStop))
158- then true
159- else throwErr("contract is temporary stopped"), if ((size(i.payments) == 1))
160- then true
161- else throwErr("payment size should be exactly 1"), if ((i.payments[0].assetId == assetIdBytes))
162- then true
163- else throwErr(makeString(["payment assetId should be:", assetIdString], " ")), if (isValidAddress(nodeAddress))
164- then true
165- else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
166- then true
167- else throwErr(makeString(["user address is not valid:", userAddress], " "))]
168- if ((checks == checks))
169- then {
170- let userLeasingAmount = i.payments[0].amount
171- let $t066206693 = getLeasingNodeData(nodeAddress)
172- let nodeCurrentLeased = $t066206693._1
173- let nodeNextLeased = $t066206693._2
174- let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
175- let $t067616847 = getUserLeasingData(nodeAddress, userAddress)
176- let userCurrentLeased = $t067616847._1
177- let userNextLeased = $t067616847._2
178- let newUserNextLeased = (userNextLeased + userLeasingAmount)
179- let userTotalLocked = getUserTotalLocked(userAddress)
180- let newUserTotalLocked = (userTotalLocked + userLeasingAmount)
181-[getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)]
182- }
183- else throw("Strict value is not equal to itself.")
184- }
185-
186-
187168 func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = {
188- let $t075497622 = getLeasingNodeData(nodeAddress)
189- let nodeCurrentLeased = $t075497622._1
190- let nodeNextLeased = $t075497622._2
191- let $t076277713 = getUserLeasingData(nodeAddress, userAddress)
192- let userCurrentLeased = $t076277713._1
193- let userNextLeased = $t076277713._2
169+ let $t063006373 = getLeasingNodeData(nodeAddress)
170+ let nodeCurrentLeased = $t063006373._1
171+ let nodeNextLeased = $t063006373._2
172+ let $t063786464 = getUserLeasingData(nodeAddress, userAddress)
173+ let userCurrentLeased = $t063786464._1
174+ let userNextLeased = $t063786464._2
194175 let checks = [if (!(isForceStop))
195176 then true
196177 else throwErr("contract is temporary stopped"), if ((unstakeAmount > 0))
197178 then true
198179 else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount))
199180 then true
200181 else throwErr("unstake amount should be less or equal user staked amount"), if ((nodeNextLeased >= unstakeAmount))
201182 then true
202183 else throwErr("unstake amount should be less or equal node staked amount"), if (isValidAddress(nodeAddress))
203184 then true
204185 else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
205186 then true
206187 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
207188 if ((checks == checks))
208189 then {
209190 let newNodeNextLease = (nodeNextLeased - unstakeAmount)
210191 let newUserNextLeased = (userNextLeased - unstakeAmount)
211- let $t085268586 = getUserToClaimBalance(userAddress)
212- let toClaim = $t085268586._1
213- let toUnlock = $t085268586._2
192+ let $t072777337 = getUserToClaimBalance(userAddress)
193+ let toClaim = $t072777337._1
194+ let toUnlock = $t072777337._2
214195 let newToUnlock = (toUnlock + unstakeAmount)
215196 let userTotalLocked = getUserTotalLocked(userAddress)
216197 let newUserTotalLocked = (userTotalLocked - unstakeAmount)
217198 [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, toClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)]
218199 }
219200 else throw("Strict value is not equal to itself.")
220201 }
221202
222203
223204 func getClaimUnlockedActions (userAddress,claimAmount) = {
224- let $t093159375 = getUserToClaimBalance(userAddress)
225- let toClaim = $t093159375._1
226- let toUnlock = $t093159375._2
205+ let $t080668126 = getUserToClaimBalance(userAddress)
206+ let toClaim = $t080668126._1
207+ let toUnlock = $t080668126._2
227208 let checks = [if (!(isForceStop))
228209 then true
229210 else throwErr("contract is temporary stopped"), if ((claimAmount > 0))
230211 then true
231212 else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount))
232213 then true
233214 else throwErr("claim amount should be less or equal unlocked amount"), if (isValidAddress(userAddress))
234215 then true
235216 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
236217 if ((checks == checks))
237218 then {
238219 let newToClaim = (toClaim - claimAmount)
239220 [getUserToClaimEntry(userAddress, newToClaim, toUnlock), ScriptTransfer(addressFromStringValue(userAddress), claimAmount, assetIdBytes)]
240221 }
241222 else throw("Strict value is not equal to itself.")
242223 }
243224
244225
245-func getStakeFromUnlockedActions (nodeAddress,userAddress,userLeasingAmount,i) = {
246- let $t01014810208 = getUserToClaimBalance(userAddress)
247- let toClaim = $t01014810208._1
248- let toUnlock = $t01014810208._2
226+func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = {
227+ let $t088878947 = getUserToClaimBalance(userAddress)
228+ let toClaim = $t088878947._1
229+ let toUnlock = $t088878947._2
249230 let paymentAmount = if ((size(i.payments) == 0))
250231 then 0
251232 else i.payments[0].amount
252233 let available = ((toUnlock + toClaim) + paymentAmount)
253234 let checks = [if (!(isForceStop))
254235 then true
255236 else throwErr("contract is temporary stopped"), if ((1 >= size(i.payments)))
256237 then true
257238 else throwErr("maximum 1 payment"), if (if ((size(i.payments) == 0))
258239 then true
259240 else (i.payments[0].assetId == assetIdBytes))
260241 then true
261242 else throwErr(makeString(["payment assetId should be:", assetIdString], " ")), if ((userLeasingAmount > 0))
262243 then true
263244 else throwErr("amount should be greater than 0"), if ((available >= userLeasingAmount))
264245 then true
265246 else throwErr("amount should be less or equal (payment + available) amount"), if ((userLeasingAmount >= paymentAmount))
266247 then true
267248 else throw("amount should be greater or equal payment amount"), if (isValidAddress(nodeAddress))
268249 then true
269250 else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
270251 then true
271252 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
272253 if ((checks == checks))
273254 then {
274- let $t01125411327 = getLeasingNodeData(nodeAddress)
275- let nodeCurrentLeased = $t01125411327._1
276- let nodeNextLeased = $t01125411327._2
255+ let $t0999310066 = getLeasingNodeData(nodeAddress)
256+ let nodeCurrentLeased = $t0999310066._1
257+ let nodeNextLeased = $t0999310066._2
277258 let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
278- let $t01139511481 = getUserLeasingData(nodeAddress, userAddress)
279- let userCurrentLeased = $t01139511481._1
280- let userNextLeased = $t01139511481._2
259+ let $t01013410220 = getUserLeasingData(nodeAddress, userAddress)
260+ let userCurrentLeased = $t01013410220._1
261+ let userNextLeased = $t01013410220._2
281262 let newUserNextLeased = (userNextLeased + userLeasingAmount)
282263 let fromUnlockedAmount = (userLeasingAmount - paymentAmount)
283264 let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)])
284265 let newToClaim = min([toClaim, (toClaim + (toUnlock - fromUnlockedAmount))])
285266 let userTotalLocked = getUserTotalLocked(userAddress)
286267 let newUserTotalLocked = (userTotalLocked + userLeasingAmount)
287268 [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, newToClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)]
288269 }
270+ else throw("Strict value is not equal to itself.")
271+ }
272+
273+
274+func getStakeFromPaymentActions (nodeAddress,userAddress,i) = {
275+ let checks = [if ((size(i.payments) == 1))
276+ then true
277+ else throwErr("payment size should be exactly 1")]
278+ if ((checks == checks))
279+ then getStakeActions(nodeAddress, userAddress, i.payments[0].amount, i)
289280 else throw("Strict value is not equal to itself.")
290281 }
291282
292283
293284 func getSetNewPeriodLengthActions (newPeriodLength) = {
294285 let check = [if ((newPeriodLength > 0))
295286 then true
296287 else throwErr("period length should be greater than 0")]
297288 if ((check == check))
298289 then if ((periodOffsetHeight == -1))
299290 then [IntegerEntry(keyPeriodLength, newPeriodLength), IntegerEntry(keyPeriodOffsetHeight, height)]
300291 else [IntegerEntry(keyPeriodOffsetId, (currentPeriodId + 1)), IntegerEntry(keyPeriodOffsetHeight, nextPeriodHeight), IntegerEntry(keyPeriodLength, newPeriodLength)]
301292 else throw("Strict value is not equal to itself.")
302293 }
303294
304295
305296 @Callable(i)
306297 func setNewPeriodLength (newPeriodLength) = {
307298 let checks = [if (isAdmin(toString(i.caller)))
308299 then true
309300 else throwErr("caller is not in adminList")]
310301 if ((checks == checks))
311302 then getSetNewPeriodLengthActions(newPeriodLength)
312303 else throw("Strict value is not equal to itself.")
313304 }
314305
315306
316307
317308 @Callable(i)
318309 func setForceStopFlag (stop) = {
319310 let check = [if (isAdmin(toString(i.caller)))
320311 then true
321312 else throwErr("caller is not an admin")]
322313 if ((check == check))
323314 then [BooleanEntry(keyForceStop, stop)]
324315 else throw("Strict value is not equal to itself.")
325316 }
326317
327318
328319
329320 @Callable(i)
330321 func getNodeDataREADONLY (nodeAddress) = {
331- let $t01363213696 = getLeasingNodeData(nodeAddress)
332- let currentLease = $t01363213696._1
333- let nextLeased = $t01363213696._2
322+ let $t01264812712 = getLeasingNodeData(nodeAddress)
323+ let currentLease = $t01264812712._1
324+ let nextLeased = $t01264812712._2
334325 $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height))
335326 }
336327
337328
338329
339330 @Callable(i)
340331 func getUserDataREADONLY (userAddress) = {
341- let $t01405914119 = getUserToClaimBalance(userAddress)
342- let toClaim = $t01405914119._1
343- let toUnlock = $t01405914119._2
332+ let $t01307513135 = getUserToClaimBalance(userAddress)
333+ let toClaim = $t01307513135._1
334+ let toUnlock = $t01307513135._2
344335 let userTotalLocked = getUserTotalLocked(userAddress)
345336 $Tuple2(nil, $Tuple6(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height))
346337 }
347338
348339
349340
350341 @Callable(i)
351-func leaseByAddress (nodeAddress,userAddress) = getStakeActions(nodeAddress, userAddress, i)
342+func leaseByAddress (nodeAddress,userAddress) = getStakeFromPaymentActions(nodeAddress, userAddress, i)
352343
353344
354345
355346 @Callable(i)
356347 func lease (nodeAddress) = {
357348 let userAddress = toString(i.caller)
358- getStakeActions(nodeAddress, userAddress, i)
349+ getStakeFromPaymentActions(nodeAddress, userAddress, i)
359350 }
360351
361352
362353
363354 @Callable(i)
364355 func leaseFromLocked (nodeAddress,amount) = {
365356 let userAddress = toString(i.caller)
366- getStakeFromUnlockedActions(nodeAddress, userAddress, amount, i)
357+ getStakeActions(nodeAddress, userAddress, amount, i)
367358 }
368359
369360
370361
371362 @Callable(i)
372363 func cancelLease (nodeAddress,amount) = {
373364 let userAddress = toString(i.caller)
374365 getUnstakeActions(nodeAddress, userAddress, amount)
375366 }
376367
377368
378369
379370 @Callable(i)
380371 func claim (amount) = {
381372 let userAddress = toString(i.caller)
382373 getClaimUnlockedActions(userAddress, amount)
383374 }
384375
385376
386377
387378 @Callable(i)
388379 func claimAll () = {
389380 let userAddress = toString(i.caller)
390- let $t01512315183 = getUserToClaimBalance(userAddress)
391- let toClaim = $t01512315183._1
392- let toUnlock = $t01512315183._2
381+ let $t01414914209 = getUserToClaimBalance(userAddress)
382+ let toClaim = $t01414914209._1
383+ let toUnlock = $t01414914209._2
393384 let checks = [if ((toClaim > 0))
394385 then true
395386 else throwErr("nothing to claim")]
396387 if ((checks == checks))
397388 then getClaimUnlockedActions(userAddress, toClaim)
398389 else throw("Strict value is not equal to itself.")
399390 }
400391
401392

github/deemru/w8io/026f985 
57.78 ms