tx · 4bqmQ7FBJubFQ1x7VGeeiTsrhHD8zohN3tShLrDLe9PJ

3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h:  -0.01300000 Waves

2024.02.12 14:14 [2972965] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves

{ "type": 13, "id": "4bqmQ7FBJubFQ1x7VGeeiTsrhHD8zohN3tShLrDLe9PJ", "fee": 1300000, "feeAssetId": null, "timestamp": 1707736492536, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "3YVdi2s2jZHRg9CKb4xMiJASMSqxdu74pzBjsrCGbxQKPzowhPUqwjSE48JPcRttGZ3ZVXWkyhhywqvecRWmTLGA" ], "script": "base64:BgIqCAISAwoBARIDCgEIEgQKAggIEgMKAQgSBAoCCAESBAoCCAESAwoBARIAJAAMY29udHJhY3RGaWxlAhFsMm1wX2xlYXNpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8BCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAAEWtleVBlcmlvZE9mZnNldElkCQC5CQIJAMwIAgICJXMJAMwIAgIIb2Zmc2V0SWQFA25pbAUDU0VQABVrZXlQZXJpb2RPZmZzZXRIZWlnaHQJALkJAgkAzAgCAgIlcwkAzAgCAgxvZmZzZXRIZWlnaHQFA25pbAUDU0VQAA9rZXlQZXJpb2RMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgxwZXJpb2RMZW5ndGgFA25pbAUDU0VQAA5wZXJpb2RPZmZzZXRJZAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBRFrZXlQZXJpb2RPZmZz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cmVzcwUHdG9DbGFpbQAvFCUA", "height": 2972965, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2b4k2v9V4QPpAYj1UMVF52Kofuvb55uFBkjiwHpBSxHw Next: 7gShWbxXeGEHPD7bhARcBjud47w6DTRcPddq47HYDjSp Diff:
OldNewDifferences
6060 }
6161
6262
63-func getLeasingNodeEntry (nodeAddress,currentPeriod,currentLeased,nextPeriod,nextLeased) = {
64- let valueString = makeString(["%d%d%d%d", toString(currentPeriod), toString(currentLeased), toString(nextPeriod), toString(nextLeased)], SEP)
63+func getLeasingNodeEntry (nodeAddress,currentLeased,nextLeased) = {
64+ let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(currentLeased), toString(nextPeriodHeight), toString(nextLeased)], SEP)
6565 StringEntry(keyLeasingNodeData(nodeAddress), valueString)
6666 }
6767
7676 let nodeNextPeriod = parseIntValue(dataList[3])
7777 let nodeNextLeased = parseIntValue(dataList[4])
7878 if ((nodeNextPeriod > height))
79- then $Tuple4(nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, nodeNextLeased)
80- else $Tuple4(currentPeriodHeight, nodeNextLeased, nextPeriodHeight, nodeNextLeased)
79+ then $Tuple2(nodeCurrentLeased, nodeNextLeased)
80+ else $Tuple2(nodeNextLeased, nodeNextLeased)
8181 case _ =>
82- $Tuple4(0, 0, 0, 0)
82+ $Tuple2(0, 0)
8383 }
8484 }
8585
181181 if ((checks == checks))
182182 then {
183183 let userLeasingAmount = i.payments[0].amount
184- let $t070397147 = getLeasingNodeData(nodeAddress)
185- let nodeCurrentPeriod = $t070397147._1
186- let nodeCurrentLeased = $t070397147._2
187- let nodeNextPeriod = $t070397147._3
188- let nodeNextLeased = $t070397147._4
184+ let $t069347007 = getLeasingNodeData(nodeAddress)
185+ let nodeCurrentLeased = $t069347007._1
186+ let nodeNextLeased = $t069347007._2
189187 let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
190- let $t072157336 = getUserLeasingData(nodeAddress, userAddress)
191- let userCurrentPeriod = $t072157336._1
192- let userCurrentLeased = $t072157336._2
193- let userNextPeriod = $t072157336._3
194- let userNextLeased = $t072157336._4
188+ let $t070757196 = getUserLeasingData(nodeAddress, userAddress)
189+ let userCurrentPeriod = $t070757196._1
190+ let userCurrentLeased = $t070757196._2
191+ let userNextPeriod = $t070757196._3
192+ let userNextLeased = $t070757196._4
195193 let newUserNextLeased = (userNextLeased + userLeasingAmount)
196-[getLeasingNodeEntry(nodeAddress, nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
194+[getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
197195 }
198196 else throw("Strict value is not equal to itself.")
199197 }
200198
201199
202200 func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = {
203- let $t080248132 = getLeasingNodeData(nodeAddress)
204- let nodeCurrentPeriod = $t080248132._1
205- let nodeCurrentLeased = $t080248132._2
206- let nodeNextPeriod = $t080248132._3
207- let nodeNextLeased = $t080248132._4
208- let $t081378258 = getUserLeasingData(nodeAddress, userAddress)
209- let userCurrentPeriod = $t081378258._1
210- let userCurrentLeased = $t081378258._2
211- let userNextPeriod = $t081378258._3
212- let userNextLeased = $t081378258._4
201+ let $t078497922 = getLeasingNodeData(nodeAddress)
202+ let nodeCurrentLeased = $t078497922._1
203+ let nodeNextLeased = $t078497922._2
204+ let $t079278048 = getUserLeasingData(nodeAddress, userAddress)
205+ let userCurrentPeriod = $t079278048._1
206+ let userCurrentLeased = $t079278048._2
207+ let userNextPeriod = $t079278048._3
208+ let userNextLeased = $t079278048._4
213209 let checks = [if ((unstakeAmount > 0))
214210 then true
215211 else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount))
225221 then {
226222 let newNodeNextLease = (nodeNextLeased - unstakeAmount)
227223 let newUserNextLeased = (userNextLeased - unstakeAmount)
228- let $t089519083 = getUserToClaimBalance(userAddress)
229- let currentPeriod = $t089519083._1
230- let toClaim = $t089519083._2
231- let nextPeriod = $t089519083._3
232- let toUnlock = $t089519083._4
224+ let $t087418873 = getUserToClaimBalance(userAddress)
225+ let currentPeriod = $t087418873._1
226+ let toClaim = $t087418873._2
227+ let nextPeriod = $t087418873._3
228+ let toUnlock = $t087418873._4
233229 let newToUnlock = (toUnlock + unstakeAmount)
234230 let removeNodeActions = if ((newUserNextLeased == 0))
235231 then [getUserNodeListEntry(userAddress, removeNodeFromNodeList(userAddress, nodeAddress))]
236232 else nil
237- ([getLeasingNodeEntry(nodeAddress, nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, toClaim, nextPeriod, newToUnlock)] ++ removeNodeActions)
233+ ([getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, toClaim, nextPeriod, newToUnlock)] ++ removeNodeActions)
238234 }
239235 else throw("Strict value is not equal to itself.")
240236 }
241237
242238
243239 func getClaimUnlockedActions (userAddress,claimAmount) = {
244- let $t097509837 = getUserToClaimBalance(userAddress)
245- let currentPeriod = $t097509837._1
246- let toClaim = $t097509837._2
247- let nextPeriod = $t097509837._3
248- let toUnlock = $t097509837._4
240+ let $t095059592 = getUserToClaimBalance(userAddress)
241+ let currentPeriod = $t095059592._1
242+ let toClaim = $t095059592._2
243+ let nextPeriod = $t095059592._3
244+ let toUnlock = $t095059592._4
249245 let checks = [if ((claimAmount > 0))
250246 then true
251247 else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount))
263259
264260
265261 func getStakeFromUnlockedActions (nodeAddress,userAddress,userLeasingAmount) = {
266- let $t01050410591 = getUserToClaimBalance(userAddress)
267- let currentPeriod = $t01050410591._1
268- let toClaim = $t01050410591._2
269- let nextPeriod = $t01050410591._3
270- let toUnlock = $t01050410591._4
262+ let $t01025910346 = getUserToClaimBalance(userAddress)
263+ let currentPeriod = $t01025910346._1
264+ let toClaim = $t01025910346._2
265+ let nextPeriod = $t01025910346._3
266+ let toUnlock = $t01025910346._4
271267 let available = (toUnlock + toClaim)
272268 let checks = [if ((userLeasingAmount > 0))
273269 then true
280276 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
281277 if ((checks == checks))
282278 then {
283- let $t01106811176 = getLeasingNodeData(nodeAddress)
284- let nodeCurrentPeriod = $t01106811176._1
285- let nodeCurrentLeased = $t01106811176._2
286- let nodeNextPeriod = $t01106811176._3
287- let nodeNextLeased = $t01106811176._4
279+ let $t01082310896 = getLeasingNodeData(nodeAddress)
280+ let nodeCurrentLeased = $t01082310896._1
281+ let nodeNextLeased = $t01082310896._2
288282 let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
289- let $t01124411365 = getUserLeasingData(nodeAddress, userAddress)
290- let userCurrentPeriod = $t01124411365._1
291- let userCurrentLeased = $t01124411365._2
292- let userNextPeriod = $t01124411365._3
293- let userNextLeased = $t01124411365._4
283+ let $t01096411085 = getUserLeasingData(nodeAddress, userAddress)
284+ let userCurrentPeriod = $t01096411085._1
285+ let userCurrentLeased = $t01096411085._2
286+ let userNextPeriod = $t01096411085._3
287+ let userNextLeased = $t01096411085._4
294288 let newUserNextLeased = (userNextLeased + userLeasingAmount)
295289 let newToUnlock = max([0, (toUnlock - userLeasingAmount)])
296290 let newToClaim = min([toClaim, (toClaim + (toUnlock - userLeasingAmount))])
297-[getLeasingNodeEntry(nodeAddress, nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, nodeNextLeased), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, newToClaim, nextPeriod, newToUnlock), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
291+[getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, nodeNextLeased), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, newToClaim, nextPeriod, newToUnlock), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
298292 }
299293 else throw("Strict value is not equal to itself.")
300294 }
323317
324318 @Callable(i)
325319 func getUserData (userAddress) = {
326- let $t01292213009 = getUserToClaimBalance(userAddress)
327- let currentPeriod = $t01292213009._1
328- let toClaim = $t01292213009._2
329- let nextPeriod = $t01292213009._3
330- let toUnlock = $t01292213009._4
320+ let $t01260712694 = getUserToClaimBalance(userAddress)
321+ let currentPeriod = $t01260712694._1
322+ let toClaim = $t01260712694._2
323+ let nextPeriod = $t01260712694._3
324+ let toUnlock = $t01260712694._4
331325 let nodeList = getUserLeasingNodeList(userAddress)
332326 $Tuple2(nil, $Tuple4(toClaim, toUnlock, (toUnlock + toClaim), nodeList))
333327 }
374368 @Callable(i)
375369 func claimAll () = {
376370 let userAddress = toString(i.caller)
377- let $t01396714054 = getUserToClaimBalance(userAddress)
378- let currentPeriod = $t01396714054._1
379- let toClaim = $t01396714054._2
380- let nextPeriod = $t01396714054._3
381- let toUnlock = $t01396714054._4
371+ let $t01365213739 = getUserToClaimBalance(userAddress)
372+ let currentPeriod = $t01365213739._1
373+ let toClaim = $t01365213739._2
374+ let nextPeriod = $t01365213739._3
375+ let toUnlock = $t01365213739._4
382376 getClaimUnlockedActions(userAddress, toClaim)
383377 }
384378
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 let scale8 = 100000000
99
1010 func throwErr (msg) = throw(((contractFile + ": ") + msg))
1111
1212
1313 let keyAssetId = makeString(["%s", "assetId"], SEP)
1414
1515 let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP)
1616
1717 let keyPeriodOffsetHeight = makeString(["%s", "offsetHeight"], SEP)
1818
1919 let keyPeriodLength = makeString(["%s", "periodLength"], SEP)
2020
2121 let periodOffsetId = valueOrElse(getInteger(this, keyPeriodOffsetId), 0)
2222
2323 let periodLength = valueOrElse(getInteger(this, keyPeriodLength), 10000)
2424
2525 let periodOffsetHeight = valueOrElse(getInteger(this, keyPeriodOffsetHeight), -1)
2626
2727 let currentPeriodId = if (if ((height > periodOffsetHeight))
2828 then (periodOffsetHeight != -1)
2929 else false)
3030 then (((height - periodOffsetHeight) / periodLength) + periodOffsetId)
3131 else max([0, (periodOffsetId - 1)])
3232
3333 let currentPeriodHeight = (periodOffsetHeight + ((currentPeriodId - periodOffsetId) * periodLength))
3434
3535 let nextPeriodHeight = (currentPeriodHeight + periodLength)
3636
3737 func keyLeasingNodeData (nodeAddress) = makeString(["%s", nodeAddress], SEP)
3838
3939
4040 func keyUserLeasingNodeList (userAddress) = makeString(["%s%s", "userLeasingNodeList", userAddress], SEP)
4141
4242
4343 func keyUserLeasingNodeData (userAddress,nodeAddress) = makeString(["%s%s", nodeAddress, userAddress], SEP)
4444
4545
4646 func keyUserToClaim (userAddress) = makeString(["%s%s", "toClaim", userAddress], SEP)
4747
4848
4949 let assetIdString = valueOrElse(getString(this, keyAssetId), "WAVES")
5050
5151 let assetIdBytes = if ((assetIdString == "WAVES"))
5252 then unit
5353 else fromBase58String(assetIdString)
5454
5555 func isValidAddress (address) = match addressFromString(address) {
5656 case a: Address =>
5757 true
5858 case _ =>
5959 false
6060 }
6161
6262
63-func getLeasingNodeEntry (nodeAddress,currentPeriod,currentLeased,nextPeriod,nextLeased) = {
64- let valueString = makeString(["%d%d%d%d", toString(currentPeriod), toString(currentLeased), toString(nextPeriod), toString(nextLeased)], SEP)
63+func getLeasingNodeEntry (nodeAddress,currentLeased,nextLeased) = {
64+ let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(currentLeased), toString(nextPeriodHeight), toString(nextLeased)], SEP)
6565 StringEntry(keyLeasingNodeData(nodeAddress), valueString)
6666 }
6767
6868
6969 func getLeasingNodeData (nodeAddress) = {
7070 let leasingDataStringRaw = getString(this, keyLeasingNodeData(nodeAddress))
7171 match leasingDataStringRaw {
7272 case ds: String =>
7373 let dataList = split(ds, SEP)
7474 let nodeCurrentPeriod = parseIntValue(dataList[1])
7575 let nodeCurrentLeased = parseIntValue(dataList[2])
7676 let nodeNextPeriod = parseIntValue(dataList[3])
7777 let nodeNextLeased = parseIntValue(dataList[4])
7878 if ((nodeNextPeriod > height))
79- then $Tuple4(nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, nodeNextLeased)
80- else $Tuple4(currentPeriodHeight, nodeNextLeased, nextPeriodHeight, nodeNextLeased)
79+ then $Tuple2(nodeCurrentLeased, nodeNextLeased)
80+ else $Tuple2(nodeNextLeased, nodeNextLeased)
8181 case _ =>
82- $Tuple4(0, 0, 0, 0)
82+ $Tuple2(0, 0)
8383 }
8484 }
8585
8686
8787 func getUserLeasingEntry (nodeAddress,userAddress,userCurrentPeriod,userCurrentLeased,userNextPeriod,userNextLeased) = {
8888 let valueString = makeString(["%d%d%d%d", toString(userCurrentPeriod), toString(userCurrentLeased), toString(userNextPeriod), toString(userNextLeased)], SEP)
8989 StringEntry(keyUserLeasingNodeData(userAddress, nodeAddress), valueString)
9090 }
9191
9292
9393 func getUserLeasingData (nodeAddress,userAddress) = {
9494 let leasingDataStringRaw = getString(this, keyUserLeasingNodeData(userAddress, nodeAddress))
9595 match leasingDataStringRaw {
9696 case ds: String =>
9797 let dataList = split(ds, SEP)
9898 let userCurrentPeriod = parseIntValue(dataList[1])
9999 let userCurrentLeased = parseIntValue(dataList[2])
100100 let userNextPeriod = parseIntValue(dataList[3])
101101 let userNextLeased = parseIntValue(dataList[4])
102102 if ((userNextPeriod > height))
103103 then $Tuple4(userCurrentPeriod, userCurrentLeased, userNextPeriod, userNextLeased)
104104 else $Tuple4(currentPeriodHeight, userNextLeased, nextPeriodHeight, userNextLeased)
105105 case _ =>
106106 $Tuple4(0, 0, 0, 0)
107107 }
108108 }
109109
110110
111111 func getUserToClaimEntry (userAddress,currentPeriod,toClaim,nextPeriod,toUnlock) = {
112112 let valueString = makeString(["%d%d%d%d", toString(currentPeriod), toString(toClaim), toString(nextPeriod), toString(toUnlock)], SEP)
113113 StringEntry(keyUserToClaim(userAddress), valueString)
114114 }
115115
116116
117117 func getUserToClaimBalance (userAddress) = {
118118 let userToClaimDataRaw = getString(this, keyUserToClaim(userAddress))
119119 match userToClaimDataRaw {
120120 case ds: String =>
121121 let dataList = split(ds, SEP)
122122 let currentPeriod = parseIntValue(dataList[1])
123123 let toClaim = parseIntValue(dataList[2])
124124 let nextPeriod = parseIntValue(dataList[3])
125125 let toUnlock = parseIntValue(dataList[4])
126126 if ((nextPeriod > height))
127127 then $Tuple4(currentPeriod, toClaim, nextPeriod, toUnlock)
128128 else $Tuple4(currentPeriodHeight, (toClaim + toUnlock), nextPeriodHeight, 0)
129129 case _ =>
130130 $Tuple4(0, 0, 0, 0)
131131 }
132132 }
133133
134134
135135 func getUserLeasingNodeList (userAddress) = {
136136 let leasingDataStringRaw = getString(this, keyUserLeasingNodeList(userAddress))
137137 match leasingDataStringRaw {
138138 case ds: String =>
139139 let dataList = split_51C(ds, SEP)
140140 dataList
141141 case _ =>
142142 nil
143143 }
144144 }
145145
146146
147147 func getUserNodeListEntry (userAddress,nodeList) = if ((size(nodeList) == 0))
148148 then DeleteEntry(keyUserLeasingNodeList(userAddress))
149149 else StringEntry(keyUserLeasingNodeList(userAddress), makeString_11C(nodeList, SEP))
150150
151151
152152 func addNodeToNodeList (userAddress,nodeAddress) = {
153153 let nodeList = getUserLeasingNodeList(userAddress)
154154 if (containsElement(nodeList, nodeAddress))
155155 then nodeList
156156 else (nodeList :+ nodeAddress)
157157 }
158158
159159
160160 func removeNodeFromNodeList (userAddress,nodeAddress) = {
161161 let nodeList = getUserLeasingNodeList(userAddress)
162162 match indexOf(nodeList, nodeAddress) {
163163 case index: Int =>
164164 removeByIndex(nodeList, index)
165165 case _ =>
166166 nodeList
167167 }
168168 }
169169
170170
171171 func getStakeActions (nodeAddress,userAddress,i) = {
172172 let checks = [if ((size(i.payments) == 1))
173173 then true
174174 else throwErr("payment size should be exactly 1"), if ((i.payments[0].assetId == assetIdBytes))
175175 then true
176176 else throwErr(makeString(["payment assetId should be:", assetIdString], " ")), if (isValidAddress(nodeAddress))
177177 then true
178178 else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
179179 then true
180180 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
181181 if ((checks == checks))
182182 then {
183183 let userLeasingAmount = i.payments[0].amount
184- let $t070397147 = getLeasingNodeData(nodeAddress)
185- let nodeCurrentPeriod = $t070397147._1
186- let nodeCurrentLeased = $t070397147._2
187- let nodeNextPeriod = $t070397147._3
188- let nodeNextLeased = $t070397147._4
184+ let $t069347007 = getLeasingNodeData(nodeAddress)
185+ let nodeCurrentLeased = $t069347007._1
186+ let nodeNextLeased = $t069347007._2
189187 let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
190- let $t072157336 = getUserLeasingData(nodeAddress, userAddress)
191- let userCurrentPeriod = $t072157336._1
192- let userCurrentLeased = $t072157336._2
193- let userNextPeriod = $t072157336._3
194- let userNextLeased = $t072157336._4
188+ let $t070757196 = getUserLeasingData(nodeAddress, userAddress)
189+ let userCurrentPeriod = $t070757196._1
190+ let userCurrentLeased = $t070757196._2
191+ let userNextPeriod = $t070757196._3
192+ let userNextLeased = $t070757196._4
195193 let newUserNextLeased = (userNextLeased + userLeasingAmount)
196-[getLeasingNodeEntry(nodeAddress, nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
194+[getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
197195 }
198196 else throw("Strict value is not equal to itself.")
199197 }
200198
201199
202200 func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = {
203- let $t080248132 = getLeasingNodeData(nodeAddress)
204- let nodeCurrentPeriod = $t080248132._1
205- let nodeCurrentLeased = $t080248132._2
206- let nodeNextPeriod = $t080248132._3
207- let nodeNextLeased = $t080248132._4
208- let $t081378258 = getUserLeasingData(nodeAddress, userAddress)
209- let userCurrentPeriod = $t081378258._1
210- let userCurrentLeased = $t081378258._2
211- let userNextPeriod = $t081378258._3
212- let userNextLeased = $t081378258._4
201+ let $t078497922 = getLeasingNodeData(nodeAddress)
202+ let nodeCurrentLeased = $t078497922._1
203+ let nodeNextLeased = $t078497922._2
204+ let $t079278048 = getUserLeasingData(nodeAddress, userAddress)
205+ let userCurrentPeriod = $t079278048._1
206+ let userCurrentLeased = $t079278048._2
207+ let userNextPeriod = $t079278048._3
208+ let userNextLeased = $t079278048._4
213209 let checks = [if ((unstakeAmount > 0))
214210 then true
215211 else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount))
216212 then true
217213 else throwErr("unstake amount should be less or equal user staked amount"), if ((nodeNextLeased >= unstakeAmount))
218214 then true
219215 else throwErr("unstake amount should be less or equal node staked amount"), if (isValidAddress(nodeAddress))
220216 then true
221217 else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
222218 then true
223219 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
224220 if ((checks == checks))
225221 then {
226222 let newNodeNextLease = (nodeNextLeased - unstakeAmount)
227223 let newUserNextLeased = (userNextLeased - unstakeAmount)
228- let $t089519083 = getUserToClaimBalance(userAddress)
229- let currentPeriod = $t089519083._1
230- let toClaim = $t089519083._2
231- let nextPeriod = $t089519083._3
232- let toUnlock = $t089519083._4
224+ let $t087418873 = getUserToClaimBalance(userAddress)
225+ let currentPeriod = $t087418873._1
226+ let toClaim = $t087418873._2
227+ let nextPeriod = $t087418873._3
228+ let toUnlock = $t087418873._4
233229 let newToUnlock = (toUnlock + unstakeAmount)
234230 let removeNodeActions = if ((newUserNextLeased == 0))
235231 then [getUserNodeListEntry(userAddress, removeNodeFromNodeList(userAddress, nodeAddress))]
236232 else nil
237- ([getLeasingNodeEntry(nodeAddress, nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, toClaim, nextPeriod, newToUnlock)] ++ removeNodeActions)
233+ ([getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, toClaim, nextPeriod, newToUnlock)] ++ removeNodeActions)
238234 }
239235 else throw("Strict value is not equal to itself.")
240236 }
241237
242238
243239 func getClaimUnlockedActions (userAddress,claimAmount) = {
244- let $t097509837 = getUserToClaimBalance(userAddress)
245- let currentPeriod = $t097509837._1
246- let toClaim = $t097509837._2
247- let nextPeriod = $t097509837._3
248- let toUnlock = $t097509837._4
240+ let $t095059592 = getUserToClaimBalance(userAddress)
241+ let currentPeriod = $t095059592._1
242+ let toClaim = $t095059592._2
243+ let nextPeriod = $t095059592._3
244+ let toUnlock = $t095059592._4
249245 let checks = [if ((claimAmount > 0))
250246 then true
251247 else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount))
252248 then true
253249 else throwErr("claim amount should be less or equal unlocked amount"), if (isValidAddress(userAddress))
254250 then true
255251 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
256252 if ((checks == checks))
257253 then {
258254 let newToClaim = (toClaim - claimAmount)
259255 [getUserToClaimEntry(userAddress, currentPeriod, newToClaim, nextPeriod, toUnlock), ScriptTransfer(addressFromStringValue(userAddress), claimAmount, assetIdBytes)]
260256 }
261257 else throw("Strict value is not equal to itself.")
262258 }
263259
264260
265261 func getStakeFromUnlockedActions (nodeAddress,userAddress,userLeasingAmount) = {
266- let $t01050410591 = getUserToClaimBalance(userAddress)
267- let currentPeriod = $t01050410591._1
268- let toClaim = $t01050410591._2
269- let nextPeriod = $t01050410591._3
270- let toUnlock = $t01050410591._4
262+ let $t01025910346 = getUserToClaimBalance(userAddress)
263+ let currentPeriod = $t01025910346._1
264+ let toClaim = $t01025910346._2
265+ let nextPeriod = $t01025910346._3
266+ let toUnlock = $t01025910346._4
271267 let available = (toUnlock + toClaim)
272268 let checks = [if ((userLeasingAmount > 0))
273269 then true
274270 else throwErr("amount should be greater than 0"), if ((available >= userLeasingAmount))
275271 then true
276272 else throwErr("amount should be less or equal to available"), if (isValidAddress(nodeAddress))
277273 then true
278274 else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress))
279275 then true
280276 else throwErr(makeString(["user address is not valid:", userAddress], " "))]
281277 if ((checks == checks))
282278 then {
283- let $t01106811176 = getLeasingNodeData(nodeAddress)
284- let nodeCurrentPeriod = $t01106811176._1
285- let nodeCurrentLeased = $t01106811176._2
286- let nodeNextPeriod = $t01106811176._3
287- let nodeNextLeased = $t01106811176._4
279+ let $t01082310896 = getLeasingNodeData(nodeAddress)
280+ let nodeCurrentLeased = $t01082310896._1
281+ let nodeNextLeased = $t01082310896._2
288282 let newNodeNextLease = (nodeNextLeased + userLeasingAmount)
289- let $t01124411365 = getUserLeasingData(nodeAddress, userAddress)
290- let userCurrentPeriod = $t01124411365._1
291- let userCurrentLeased = $t01124411365._2
292- let userNextPeriod = $t01124411365._3
293- let userNextLeased = $t01124411365._4
283+ let $t01096411085 = getUserLeasingData(nodeAddress, userAddress)
284+ let userCurrentPeriod = $t01096411085._1
285+ let userCurrentLeased = $t01096411085._2
286+ let userNextPeriod = $t01096411085._3
287+ let userNextLeased = $t01096411085._4
294288 let newUserNextLeased = (userNextLeased + userLeasingAmount)
295289 let newToUnlock = max([0, (toUnlock - userLeasingAmount)])
296290 let newToClaim = min([toClaim, (toClaim + (toUnlock - userLeasingAmount))])
297-[getLeasingNodeEntry(nodeAddress, nodeCurrentPeriod, nodeCurrentLeased, nodeNextPeriod, nodeNextLeased), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, newToClaim, nextPeriod, newToUnlock), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
291+[getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, nodeNextLeased), getUserLeasingEntry(nodeAddress, userAddress, userCurrentPeriod, userCurrentLeased, userNextPeriod, newUserNextLeased), getUserToClaimEntry(userAddress, currentPeriod, newToClaim, nextPeriod, newToUnlock), getUserNodeListEntry(userAddress, addNodeToNodeList(userAddress, nodeAddress))]
298292 }
299293 else throw("Strict value is not equal to itself.")
300294 }
301295
302296
303297 func getSetNewPeriodLengthActions (newPeriodLength) = {
304298 let check = [if ((newPeriodLength > 0))
305299 then true
306300 else throwErr("period length should be greater than 0")]
307301 if ((check == check))
308302 then if ((periodOffsetHeight == -1))
309303 then [IntegerEntry(keyPeriodLength, newPeriodLength), IntegerEntry(keyPeriodOffsetHeight, height)]
310304 else {
311305 let newPeriodOffsetId = (currentPeriodId + 1)
312306 let newOffsetHeight = ((periodLength * (newPeriodOffsetId - periodOffsetId)) + periodOffsetHeight)
313307 [IntegerEntry(keyPeriodOffsetId, newPeriodOffsetId), IntegerEntry(keyPeriodOffsetHeight, newOffsetHeight), IntegerEntry(keyPeriodLength, newPeriodLength)]
314308 }
315309 else throw("Strict value is not equal to itself.")
316310 }
317311
318312
319313 @Callable(i)
320314 func setNewPeriodLength (newPeriodLength) = getSetNewPeriodLengthActions(newPeriodLength)
321315
322316
323317
324318 @Callable(i)
325319 func getUserData (userAddress) = {
326- let $t01292213009 = getUserToClaimBalance(userAddress)
327- let currentPeriod = $t01292213009._1
328- let toClaim = $t01292213009._2
329- let nextPeriod = $t01292213009._3
330- let toUnlock = $t01292213009._4
320+ let $t01260712694 = getUserToClaimBalance(userAddress)
321+ let currentPeriod = $t01260712694._1
322+ let toClaim = $t01260712694._2
323+ let nextPeriod = $t01260712694._3
324+ let toUnlock = $t01260712694._4
331325 let nodeList = getUserLeasingNodeList(userAddress)
332326 $Tuple2(nil, $Tuple4(toClaim, toUnlock, (toUnlock + toClaim), nodeList))
333327 }
334328
335329
336330
337331 @Callable(i)
338332 func stakeFor (nodeAddress,userAddress) = getStakeActions(nodeAddress, userAddress, i)
339333
340334
341335
342336 @Callable(i)
343337 func stake (nodeAddress) = {
344338 let userAddress = toString(i.caller)
345339 getStakeActions(nodeAddress, userAddress, i)
346340 }
347341
348342
349343
350344 @Callable(i)
351345 func stakeFromUnlocked (nodeAddress,amount) = {
352346 let userAddress = toString(i.caller)
353347 getStakeFromUnlockedActions(nodeAddress, userAddress, amount)
354348 }
355349
356350
357351
358352 @Callable(i)
359353 func unstake (nodeAddress,amount) = {
360354 let userAddress = toString(i.caller)
361355 getUnstakeActions(nodeAddress, userAddress, amount)
362356 }
363357
364358
365359
366360 @Callable(i)
367361 func claim (amount) = {
368362 let userAddress = toString(i.caller)
369363 getClaimUnlockedActions(userAddress, amount)
370364 }
371365
372366
373367
374368 @Callable(i)
375369 func claimAll () = {
376370 let userAddress = toString(i.caller)
377- let $t01396714054 = getUserToClaimBalance(userAddress)
378- let currentPeriod = $t01396714054._1
379- let toClaim = $t01396714054._2
380- let nextPeriod = $t01396714054._3
381- let toUnlock = $t01396714054._4
371+ let $t01365213739 = getUserToClaimBalance(userAddress)
372+ let currentPeriod = $t01365213739._1
373+ let toClaim = $t01365213739._2
374+ let nextPeriod = $t01365213739._3
375+ let toUnlock = $t01365213739._4
382376 getClaimUnlockedActions(userAddress, toClaim)
383377 }
384378
385379

github/deemru/w8io/169f3d6 
72.28 ms