tx · 3vNLwKZ7ywkKpGbgqP6yX4tKUizLA3DeWCqEWiiqAirE

3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq:  -0.01400000 Waves

2023.07.21 15:12 [2675598] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves

{ "type": 13, "id": "3vNLwKZ7ywkKpGbgqP6yX4tKUizLA3DeWCqEWiiqAirE", "fee": 1400000, "feeAssetId": null, "timestamp": 1689941556370, "version": 2, "chainId": 84, "sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq", "senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW", "proofs": [ "47oBh1iJ5FmFHJxTDgaJwycfGMQ7RKv5w7M5YvN9C3Mj9LpLsegWHsAwjn4mhH7ZeffR7su3M8icNwJ8qsxugTKT" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgASAwoBCC0ADGNvbnRyYWN0RmlsZQIQbXB0X3N0YWtpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8AEkFERFJFU1NfQllURVNfU0laRQAaAA1CTE9DS1NfSU5fREFZAAoBCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAAE2tleUVtaXNzaW9uUGVyQmxvY2sJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvblBlckJsb2NrBQNuaWwFA1NFUAANa2V5U3RhcnRCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICCnN0YXJ0QmxvY2sFA25pbAUDU0VQABBrZXlUb3RhbExwQW1vdW50CQC5CQIJAMwIAgICJXMJAMwIAgINdG90YWxMcEFtb3VudAUDbmlsBQNTRVAAE2tleVRvdGFsQXNzZXRBbW91bnQJALkJAgkAzAgCAgIlc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d2VkVHhJZAACAAQHYnlPd25lcgMJAGcCCQCQAwEJAQ1nZXRBZG1pbnNMaXN0AAUGUVVPUlVNBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQMFCGJ5QWRtaW5zBgUHYnlPd25lchQGpW4=", "height": 2675598, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9oVmtXc14ZJfo7dwmYj9qdGnC9i5y8C4MnhTyxbdTW7p Next: 9YYT8QXW1hJbw7ZYCQwo98GL2475ot1oVjXLYD6LrrpT Diff:
OldNewDifferences
186186 let startBlock = valueOrElse(getInteger(this, keyStartBlock), 0)
187187 let startDay = fraction(startBlock, 1, BLOCKS_IN_DAY)
188188 let elapsedDays = (heightInDays - startDay)
189- $Tuple3(startDay, heightInDays, elapsedDays)
189+ $Tuple5(startDay, heightInDays, elapsedDays, startBlock, height)
190190 }
191191
192192
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let contractFile = "mpt_staking.ride"
55
66 let SEP = "__"
77
88 let scale8 = 100000000
99
1010 let ADDRESS_BYTES_SIZE = 26
1111
1212 let BLOCKS_IN_DAY = 10
1313
1414 func throwErr (msg) = throw(((contractFile + ": ") + msg))
1515
1616
1717 let keyAssetId = makeString(["%s", "assetId"], SEP)
1818
1919 let keyEmissionPerBlock = makeString(["%s", "emissionPerBlock"], SEP)
2020
2121 let keyStartBlock = makeString(["%s", "startBlock"], SEP)
2222
2323 let keyTotalLpAmount = makeString(["%s", "totalLpAmount"], SEP)
2424
2525 let keyTotalAssetAmount = makeString(["%s", "totalAssetAmount"], SEP)
2626
2727 func keyUserLpAmount (userAddress) = makeString(["%s%s", "userLpAmount", userAddress], SEP)
2828
2929
3030 func keyUserTotalAssetWithdrawn (userAddress) = makeString(["%s%s", "totalAssetWithdrawn", userAddress], SEP)
3131
3232
3333 func keyUserTotalAssetStaked (userAddress) = makeString(["%s%s", "totalAssetStaked", userAddress], SEP)
3434
3535
3636 let totalLpAmount = valueOrElse(getInteger(this, keyTotalLpAmount), 0)
3737
3838 let totalAssetAmount = valueOrElse(getInteger(this, keyTotalAssetAmount), 0)
3939
4040 let assetIdString = valueOrElse(getString(this, keyAssetId), "WAVES")
4141
4242 let assetIdBytes = if ((assetIdString == "WAVES"))
4343 then unit
4444 else fromBase58String(assetIdString)
4545
4646 let emissionPerDay = (valueOrElse(getInteger(this, keyEmissionPerBlock), 0) * BLOCKS_IN_DAY)
4747
4848 let heightInDays = fraction(height, 1, BLOCKS_IN_DAY)
4949
5050 let ADMIN_LIST_SIZE = 5
5151
5252 let QUORUM = 3
5353
5454 let TXID_BYTES_LENGTH = 32
5555
5656 func keyAllowedTxIdVotePrefix (txId) = makeString(["%s%s%s", "allowTxId", txId], SEP)
5757
5858
5959 func keyFullAdminVote (prefix,adminAddress) = makeString([prefix, adminAddress], SEP)
6060
6161
6262 func keyAdminAddressList () = makeString(["%s", "adminAddressList"], SEP)
6363
6464
6565 func keyAllowedTxId () = makeString(["%s", "txId"], SEP)
6666
6767
6868 func getAdminVote (prefix,admin) = {
6969 let voteKey = keyFullAdminVote(prefix, admin)
7070 valueOrElse(getInteger(voteKey), 0)
7171 }
7272
7373
7474 func getAdminsList () = match getString(this, keyAdminAddressList()) {
7575 case s: String =>
7676 split(s, SEP)
7777 case _ =>
7878 nil
7979 }
8080
8181
8282 func isInAdminList (address) = containsElement(getAdminsList(), address)
8383
8484
8585 func genVotesKeysHelper (a,adminAddress) = {
8686 let $t024082432 = a
8787 let result = $t024082432._1
8888 let prefix = $t024082432._2
8989 $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix)
9090 }
9191
9292
9393 func genVotesKeys (keyPrefix) = {
9494 let adminList = keyAdminAddressList()
9595 let $t025792663 = {
9696 let $l = getAdminsList()
9797 let $s = size($l)
9898 let $acc0 = $Tuple2(nil, keyPrefix)
9999 func $f0_1 ($a,$i) = if (($i >= $s))
100100 then $a
101101 else genVotesKeysHelper($a, $l[$i])
102102
103103 func $f0_2 ($a,$i) = if (($i >= $s))
104104 then $a
105105 else throw("List size exceeds 5")
106106
107107 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
108108 }
109109 let result = $t025792663._1
110110 let prefix = $t025792663._2
111111 result
112112 }
113113
114114
115115 func countVotesHelper (result,voteKey) = (result + valueOrElse(getInteger(voteKey), 0))
116116
117117
118118 func countVotes (prefix) = {
119119 let votes = genVotesKeys(prefix)
120120 let $l = votes
121121 let $s = size($l)
122122 let $acc0 = 0
123123 func $f0_1 ($a,$i) = if (($i >= $s))
124124 then $a
125125 else countVotesHelper($a, $l[$i])
126126
127127 func $f0_2 ($a,$i) = if (($i >= $s))
128128 then $a
129129 else throw("List size exceeds 5")
130130
131131 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
132132 }
133133
134134
135135 func clearVotesHelper (result,key) = (result :+ DeleteEntry(key))
136136
137137
138138 func getClearVoteEntries (prefix) = {
139139 let votes = genVotesKeys(prefix)
140140 let $l = votes
141141 let $s = size($l)
142142 let $acc0 = nil
143143 func $f0_1 ($a,$i) = if (($i >= $s))
144144 then $a
145145 else clearVotesHelper($a, $l[$i])
146146
147147 func $f0_2 ($a,$i) = if (($i >= $s))
148148 then $a
149149 else throw("List size exceeds 5")
150150
151151 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
152152 }
153153
154154
155155 func voteINTERNAL (callerAddressString,keyPrefix,minVotes,voteResult) = {
156156 let voteKey = keyFullAdminVote(keyPrefix, callerAddressString)
157157 let adminCurrentVote = getAdminVote(keyPrefix, callerAddressString)
158158 let err = if (!(isInAdminList(callerAddressString)))
159159 then throwErr((("Address: " + callerAddressString) + " not in Admin list"))
160160 else if ((adminCurrentVote == 1))
161161 then throwErr((voteKey + " you already voted"))
162162 else unit
163163 if ((err == err))
164164 then {
165165 let votes = countVotes(keyPrefix)
166166 if (((votes + 1) >= minVotes))
167167 then {
168168 let clearVoteEntries = getClearVoteEntries(keyPrefix)
169169 (clearVoteEntries ++ voteResult)
170170 }
171171 else [IntegerEntry(voteKey, 1)]
172172 }
173173 else throw("Strict value is not equal to itself.")
174174 }
175175
176176
177177 func calcTotalProfit () = {
178178 let startBlock = valueOrElse(getInteger(this, keyStartBlock), 0)
179179 let startDay = fraction(startBlock, 1, BLOCKS_IN_DAY)
180180 let elapsedDays = (heightInDays - startDay)
181181 max([0, (emissionPerDay * elapsedDays)])
182182 }
183183
184184
185185 func debugDays () = {
186186 let startBlock = valueOrElse(getInteger(this, keyStartBlock), 0)
187187 let startDay = fraction(startBlock, 1, BLOCKS_IN_DAY)
188188 let elapsedDays = (heightInDays - startDay)
189- $Tuple3(startDay, heightInDays, elapsedDays)
189+ $Tuple5(startDay, heightInDays, elapsedDays, startBlock, height)
190190 }
191191
192192
193193 func getTotalAssetAmountWithProfitOrMaxAvailable () = {
194194 let totalAssetAmountWithProfit = (totalAssetAmount + calcTotalProfit())
195195 let totalAmount = match assetIdBytes {
196196 case u: Unit =>
197197 min([totalAssetAmountWithProfit, wavesBalance(this).available])
198198 case b: ByteVector =>
199199 min([totalAssetAmountWithProfit, assetBalance(this, b)])
200200 case _ =>
201201 throw("Match error")
202202 }
203203 if ((totalLpAmount == 0))
204204 then 0
205205 else totalAmount
206206 }
207207
208208
209209 func getCurrentPrice () = if ((totalLpAmount != 0))
210210 then fraction(getTotalAssetAmountWithProfitOrMaxAvailable(), scale8, totalLpAmount)
211211 else (1 * scale8)
212212
213213
214214 func getUserLpAmount (userAddress) = valueOrElse(getInteger(this, keyUserLpAmount(userAddress)), 0)
215215
216216
217217 func getUserAvailableAssetsToWithdraw (userAddress) = {
218218 let userLpAmount = getUserLpAmount(userAddress)
219219 let userAvailableAssetToWithdraw = fraction(userLpAmount, getCurrentPrice(), scale8)
220220 if ((getCurrentPrice() > (userAvailableAssetToWithdraw * scale8)))
221221 then 0
222222 else userAvailableAssetToWithdraw
223223 }
224224
225225
226226 func getStakeActions (i,userAddress) = {
227227 let checks = [if ((size(i.payments) == 1))
228228 then true
229229 else throwErr("should include 1 payment"), if ((i.payments[0].assetId == assetIdBytes))
230230 then true
231231 else throwErr(("payment should be in " + assetIdString)), if ((i.payments[0].amount > 0))
232232 then true
233233 else "payment amount should be greater than 0"]
234234 if ((checks == checks))
235235 then {
236236 let paymentAmount = i.payments[0].amount
237237 let paymentLpAmount = fraction(paymentAmount, scale8, getCurrentPrice())
238238 let userLpAmount = getUserLpAmount(userAddress)
239239 let userTotalStakedAmount = valueOrElse(getInteger(this, keyUserTotalAssetStaked(userAddress)), 0)
240240 let newTotalLpAmount = (totalLpAmount + paymentLpAmount)
241241 let newTotalAssetAmount = (totalAssetAmount + paymentAmount)
242242 let newUserLpAmount = (userLpAmount + paymentLpAmount)
243243 let newUserTotalStakedAmount = (userTotalStakedAmount + paymentAmount)
244244 let updateStartHeightAction = if ((totalLpAmount == 0))
245245 then [IntegerEntry(keyStartBlock, height)]
246246 else nil
247247 ([IntegerEntry(keyTotalLpAmount, newTotalLpAmount), IntegerEntry(keyTotalAssetAmount, newTotalAssetAmount), IntegerEntry(keyUserLpAmount(userAddress), newUserLpAmount), IntegerEntry(keyUserTotalAssetStaked(userAddress), newUserTotalStakedAmount)] ++ updateStartHeightAction)
248248 }
249249 else throw("Strict value is not equal to itself.")
250250 }
251251
252252
253253 func getWithdrawActions (i,lpAssetWithdrawAmount) = {
254254 let userAddress = toString(i.caller)
255255 let userLpAmount = getUserLpAmount(userAddress)
256256 let check = [if ((lpAssetWithdrawAmount > 0))
257257 then true
258258 else throwErr("amount should be more than 0"), if ((userLpAmount >= lpAssetWithdrawAmount))
259259 then true
260260 else throwErr((("cannot withdraw more than available (" + toString(userLpAmount)) + ")"))]
261261 if ((check == check))
262262 then {
263263 let newUserLpAmount = (userLpAmount - lpAssetWithdrawAmount)
264264 let withdrawAssetAmount = fraction(lpAssetWithdrawAmount, getCurrentPrice(), scale8)
265265 let newTotalLpAmount = (totalLpAmount - lpAssetWithdrawAmount)
266266 let newTotalAssetAmount = fraction(newTotalLpAmount, getCurrentPrice(), scale8)
267267 let userTotalAssetWithdrawn = valueOrElse(getInteger(this, keyUserTotalAssetWithdrawn(userAddress)), 0)
268268 let newUserTotalAssetWithdrawn = (userTotalAssetWithdrawn + withdrawAssetAmount)
269269 [IntegerEntry(keyTotalLpAmount, newTotalLpAmount), IntegerEntry(keyTotalAssetAmount, newTotalAssetAmount), IntegerEntry(keyUserLpAmount(userAddress), newUserLpAmount), IntegerEntry(keyUserTotalAssetWithdrawn(userAddress), newUserTotalAssetWithdrawn), IntegerEntry(keyStartBlock, height), ScriptTransfer(i.caller, withdrawAssetAmount, assetIdBytes)]
270270 }
271271 else throw("Strict value is not equal to itself.")
272272 }
273273
274274
275275 @Callable(i)
276276 func setEmissionPerBlock (emissionPerBlock) = {
277277 let check = [if ((i.caller == this))
278278 then true
279279 else throwErr("permission denied")]
280280 if ((check == check))
281281 then [IntegerEntry(keyTotalAssetAmount, getTotalAssetAmountWithProfitOrMaxAvailable()), IntegerEntry(keyStartBlock, height), IntegerEntry(keyEmissionPerBlock, max([0, emissionPerBlock]))]
282282 else throw("Strict value is not equal to itself.")
283283 }
284284
285285
286286
287287 @Callable(i)
288288 func stake () = getStakeActions(i, toString(i.caller))
289289
290290
291291
292292 @Callable(i)
293293 func stakeFor (userAddress) = {
294294 let check = [if ((size(fromBase58String(userAddress)) == ADDRESS_BYTES_SIZE))
295295 then true
296296 else throwErr("address is not valid")]
297297 if ((check == check))
298298 then getStakeActions(i, userAddress)
299299 else throw("Strict value is not equal to itself.")
300300 }
301301
302302
303303
304304 @Callable(i)
305305 func withdraw (withdrawAssetAmount) = {
306306 let userAddress = toString(i.caller)
307307 let userLpAmount = getUserLpAmount(userAddress)
308308 let lpAmountToWithdraw = fraction(withdrawAssetAmount, scale8, getCurrentPrice())
309309 let userAvailableAssetToWithdraw = getUserAvailableAssetsToWithdraw(userAddress)
310310 let check = [if ((withdrawAssetAmount > 0))
311311 then true
312312 else throwErr("withdraw amount should be more than 0"), if ((userAvailableAssetToWithdraw >= withdrawAssetAmount))
313313 then true
314314 else throwErr((("cannot withdraw more than available (" + toString(userAvailableAssetToWithdraw)) + ")"))]
315315 if ((check == check))
316316 then getWithdrawActions(i, lpAmountToWithdraw)
317317 else throw("Strict value is not equal to itself.")
318318 }
319319
320320
321321
322322 @Callable(i)
323323 func getUserAssetsREADONLY (userAddress) = {
324324 let userLpAmount = getUserLpAmount(userAddress)
325325 let userAvailableAssetToWithdraw = getUserAvailableAssetsToWithdraw(userAddress)
326326 let userTotalStakedAmount = valueOrElse(getInteger(this, keyUserTotalAssetStaked(userAddress)), 0)
327327 let userTotalAssetWithdrawn = valueOrElse(getInteger(this, keyUserTotalAssetWithdrawn(userAddress)), 0)
328328 $Tuple2(nil, $Tuple5(userLpAmount, userAvailableAssetToWithdraw, getCurrentPrice(), userTotalStakedAmount, userTotalAssetWithdrawn))
329329 }
330330
331331
332332
333333 @Callable(i)
334334 func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple3(totalLpAmount, getTotalAssetAmountWithProfitOrMaxAvailable(), getCurrentPrice()))
335335
336336
337337
338338 @Callable(i)
339339 func voteForTxId (txId) = {
340340 let callerAddressString = toBase58String(i.caller.bytes)
341341 let keyPrefix = keyAllowedTxIdVotePrefix(txId)
342342 let result = [StringEntry(keyAllowedTxId(), txId)]
343343 let allowedTxIdOption = getString(this, keyAllowedTxId())
344344 let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH))
345345 then true
346346 else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit))
347347 then true
348348 else (value(allowedTxIdOption) != txId))
349349 then true
350350 else throwErr((txId + " is already allowed"))]
351351 if ((err == err))
352352 then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result)
353353 else throw("Strict value is not equal to itself.")
354354 }
355355
356356
357357 @Verifier(tx)
358358 func verify () = {
359359 let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), "")))
360360 let byOwner = if ((size(getAdminsList()) >= QUORUM))
361361 then false
362362 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
363363 if (byAdmins)
364364 then true
365365 else byOwner
366366 }
367367

github/deemru/w8io/026f985 
37.90 ms