tx · J3tJi6bV1jGFPYQ4Z4eqyjZ4ZoQvHHE8P5BJQ9dQf2bS

3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq:  -0.01400000 Waves

2023.07.21 15:03 [2675588] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves

{ "type": 13, "id": "J3tJi6bV1jGFPYQ4Z4eqyjZ4ZoQvHHE8P5BJQ9dQf2bS", "fee": 1400000, "feeAssetId": null, "timestamp": 1689941018885, "version": 2, "chainId": 84, "sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq", "senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW", "proofs": [ "5AHEpwWtYkvh7ZaRfztzvJZXGzvJcHaufs54j37RweJY5uSeR2MH5CSbTyi7hwRo6T2xScoCDBnhPDyL2Biq8vuN" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgASAwoBCCwADGNvbnRyYWN0RmlsZQIQbXB0X3N0YWtpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8AEkFERFJFU1NfQllURVNfU0laRQAaAA1CTE9DS1NfSU5fREFZAAoBCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAAE2tleUVtaXNzaW9uUGVyQmxvY2sJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvblBlckJsb2NrBQNuaWwFA1NFUAANa2V5U3RhcnRCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICCnN0YXJ0QmxvY2sFA25pbAUDU0VQABBrZXlUb3RhbExwQW1vdW50CQC5CQIJAMwIAgICJXMJAMwIAgINdG90YWxMcEFtb3VudAUDbmlsBQNTRVAAE2tleVRvdGFsQXNzZXRBbW91bnQJALkJAgkAzA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xH8MSURBEh Next: 9oVmtXc14ZJfo7dwmYj9qdGnC9i5y8C4MnhTyxbdTW7p Diff:
OldNewDifferences
99
1010 let ADDRESS_BYTES_SIZE = 26
1111
12-let BLOCKS_IN_DAY = 1440
12+let BLOCKS_IN_DAY = 10
1313
1414 func throwErr (msg) = throw(((contractFile + ": ") + msg))
1515
8383
8484
8585 func genVotesKeysHelper (a,adminAddress) = {
86- let $t024102434 = a
87- let result = $t024102434._1
88- let prefix = $t024102434._2
86+ let $t024082432 = a
87+ let result = $t024082432._1
88+ let prefix = $t024082432._2
8989 $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix)
9090 }
9191
9292
9393 func genVotesKeys (keyPrefix) = {
9494 let adminList = keyAdminAddressList()
95- let $t025812665 = {
95+ let $t025792663 = {
9696 let $l = getAdminsList()
9797 let $s = size($l)
9898 let $acc0 = $Tuple2(nil, keyPrefix)
106106
107107 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
108108 }
109- let result = $t025812665._1
110- let prefix = $t025812665._2
109+ let result = $t025792663._1
110+ let prefix = $t025792663._2
111111 result
112112 }
113113
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
12-let BLOCKS_IN_DAY = 1440
12+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) = {
86- let $t024102434 = a
87- let result = $t024102434._1
88- let prefix = $t024102434._2
86+ let $t024082432 = a
87+ let result = $t024082432._1
88+ let prefix = $t024082432._2
8989 $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix)
9090 }
9191
9292
9393 func genVotesKeys (keyPrefix) = {
9494 let adminList = keyAdminAddressList()
95- let $t025812665 = {
95+ 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 }
109- let result = $t025812665._1
110- let prefix = $t025812665._2
109+ let result = $t025792663._1
110+ 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 getTotalAssetAmountWithProfitOrMaxAvailable () = {
186186 let totalAssetAmountWithProfit = (totalAssetAmount + calcTotalProfit())
187187 let totalAmount = match assetIdBytes {
188188 case u: Unit =>
189189 min([totalAssetAmountWithProfit, wavesBalance(this).available])
190190 case b: ByteVector =>
191191 min([totalAssetAmountWithProfit, assetBalance(this, b)])
192192 case _ =>
193193 throw("Match error")
194194 }
195195 if ((totalLpAmount == 0))
196196 then 0
197197 else totalAmount
198198 }
199199
200200
201201 func getCurrentPrice () = if ((totalLpAmount != 0))
202202 then fraction(getTotalAssetAmountWithProfitOrMaxAvailable(), scale8, totalLpAmount)
203203 else (1 * scale8)
204204
205205
206206 func getUserLpAmount (userAddress) = valueOrElse(getInteger(this, keyUserLpAmount(userAddress)), 0)
207207
208208
209209 func getUserAvailableAssetsToWithdraw (userAddress) = {
210210 let userLpAmount = getUserLpAmount(userAddress)
211211 let userAvailableAssetToWithdraw = fraction(userLpAmount, getCurrentPrice(), scale8)
212212 if ((getCurrentPrice() > (userAvailableAssetToWithdraw * scale8)))
213213 then 0
214214 else userAvailableAssetToWithdraw
215215 }
216216
217217
218218 func getStakeActions (i,userAddress) = {
219219 let checks = [if ((size(i.payments) == 1))
220220 then true
221221 else throwErr("should include 1 payment"), if ((i.payments[0].assetId == assetIdBytes))
222222 then true
223223 else throwErr(("payment should be in " + assetIdString)), if ((i.payments[0].amount > 0))
224224 then true
225225 else "payment amount should be greater than 0"]
226226 if ((checks == checks))
227227 then {
228228 let paymentAmount = i.payments[0].amount
229229 let paymentLpAmount = fraction(paymentAmount, scale8, getCurrentPrice())
230230 let userLpAmount = getUserLpAmount(userAddress)
231231 let userTotalStakedAmount = valueOrElse(getInteger(this, keyUserTotalAssetStaked(userAddress)), 0)
232232 let newTotalLpAmount = (totalLpAmount + paymentLpAmount)
233233 let newTotalAssetAmount = (totalAssetAmount + paymentAmount)
234234 let newUserLpAmount = (userLpAmount + paymentLpAmount)
235235 let newUserTotalStakedAmount = (userTotalStakedAmount + paymentAmount)
236236 let updateStartHeightAction = if ((totalLpAmount == 0))
237237 then [IntegerEntry(keyStartBlock, height)]
238238 else nil
239239 ([IntegerEntry(keyTotalLpAmount, newTotalLpAmount), IntegerEntry(keyTotalAssetAmount, newTotalAssetAmount), IntegerEntry(keyUserLpAmount(userAddress), newUserLpAmount), IntegerEntry(keyUserTotalAssetStaked(userAddress), newUserTotalStakedAmount)] ++ updateStartHeightAction)
240240 }
241241 else throw("Strict value is not equal to itself.")
242242 }
243243
244244
245245 func getWithdrawActions (i,lpAssetWithdrawAmount) = {
246246 let userAddress = toString(i.caller)
247247 let userLpAmount = getUserLpAmount(userAddress)
248248 let check = [if ((lpAssetWithdrawAmount > 0))
249249 then true
250250 else throwErr("amount should be more than 0"), if ((userLpAmount >= lpAssetWithdrawAmount))
251251 then true
252252 else throwErr((("cannot withdraw more than available (" + toString(userLpAmount)) + ")"))]
253253 if ((check == check))
254254 then {
255255 let newUserLpAmount = (userLpAmount - lpAssetWithdrawAmount)
256256 let withdrawAssetAmount = fraction(lpAssetWithdrawAmount, getCurrentPrice(), scale8)
257257 let newTotalLpAmount = (totalLpAmount - lpAssetWithdrawAmount)
258258 let newTotalAssetAmount = fraction(newTotalLpAmount, getCurrentPrice(), scale8)
259259 let userTotalAssetWithdrawn = valueOrElse(getInteger(this, keyUserTotalAssetWithdrawn(userAddress)), 0)
260260 let newUserTotalAssetWithdrawn = (userTotalAssetWithdrawn + withdrawAssetAmount)
261261 [IntegerEntry(keyTotalLpAmount, newTotalLpAmount), IntegerEntry(keyTotalAssetAmount, newTotalAssetAmount), IntegerEntry(keyUserLpAmount(userAddress), newUserLpAmount), IntegerEntry(keyUserTotalAssetWithdrawn(userAddress), newUserTotalAssetWithdrawn), IntegerEntry(keyStartBlock, height), ScriptTransfer(i.caller, withdrawAssetAmount, assetIdBytes)]
262262 }
263263 else throw("Strict value is not equal to itself.")
264264 }
265265
266266
267267 @Callable(i)
268268 func setEmissionPerBlock (emissionPerBlock) = {
269269 let check = [if ((i.caller == this))
270270 then true
271271 else throwErr("permission denied")]
272272 if ((check == check))
273273 then [IntegerEntry(keyTotalAssetAmount, getTotalAssetAmountWithProfitOrMaxAvailable()), IntegerEntry(keyStartBlock, height), IntegerEntry(keyEmissionPerBlock, max([0, emissionPerBlock]))]
274274 else throw("Strict value is not equal to itself.")
275275 }
276276
277277
278278
279279 @Callable(i)
280280 func stake () = getStakeActions(i, toString(i.caller))
281281
282282
283283
284284 @Callable(i)
285285 func stakeFor (userAddress) = {
286286 let check = [if ((size(fromBase58String(userAddress)) == ADDRESS_BYTES_SIZE))
287287 then true
288288 else throwErr("address is not valid")]
289289 if ((check == check))
290290 then getStakeActions(i, userAddress)
291291 else throw("Strict value is not equal to itself.")
292292 }
293293
294294
295295
296296 @Callable(i)
297297 func withdraw (withdrawAssetAmount) = {
298298 let userAddress = toString(i.caller)
299299 let userLpAmount = getUserLpAmount(userAddress)
300300 let lpAmountToWithdraw = fraction(withdrawAssetAmount, scale8, getCurrentPrice())
301301 let userAvailableAssetToWithdraw = getUserAvailableAssetsToWithdraw(userAddress)
302302 let check = [if ((withdrawAssetAmount > 0))
303303 then true
304304 else throwErr("withdraw amount should be more than 0"), if ((userAvailableAssetToWithdraw >= withdrawAssetAmount))
305305 then true
306306 else throwErr((("cannot withdraw more than available (" + toString(userAvailableAssetToWithdraw)) + ")"))]
307307 if ((check == check))
308308 then getWithdrawActions(i, lpAmountToWithdraw)
309309 else throw("Strict value is not equal to itself.")
310310 }
311311
312312
313313
314314 @Callable(i)
315315 func getUserAssetsREADONLY (userAddress) = {
316316 let userLpAmount = getUserLpAmount(userAddress)
317317 let userAvailableAssetToWithdraw = getUserAvailableAssetsToWithdraw(userAddress)
318318 let userTotalStakedAmount = valueOrElse(getInteger(this, keyUserTotalAssetStaked(userAddress)), 0)
319319 let userTotalAssetWithdrawn = valueOrElse(getInteger(this, keyUserTotalAssetWithdrawn(userAddress)), 0)
320320 $Tuple2(nil, $Tuple5(userLpAmount, userAvailableAssetToWithdraw, getCurrentPrice(), userTotalStakedAmount, userTotalAssetWithdrawn))
321321 }
322322
323323
324324
325325 @Callable(i)
326326 func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple3(totalLpAmount, getTotalAssetAmountWithProfitOrMaxAvailable(), getCurrentPrice()))
327327
328328
329329
330330 @Callable(i)
331331 func voteForTxId (txId) = {
332332 let callerAddressString = toBase58String(i.caller.bytes)
333333 let keyPrefix = keyAllowedTxIdVotePrefix(txId)
334334 let result = [StringEntry(keyAllowedTxId(), txId)]
335335 let allowedTxIdOption = getString(this, keyAllowedTxId())
336336 let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH))
337337 then true
338338 else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit))
339339 then true
340340 else (value(allowedTxIdOption) != txId))
341341 then true
342342 else throwErr((txId + " is already allowed"))]
343343 if ((err == err))
344344 then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result)
345345 else throw("Strict value is not equal to itself.")
346346 }
347347
348348
349349 @Verifier(tx)
350350 func verify () = {
351351 let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), "")))
352352 let byOwner = if ((size(getAdminsList()) >= QUORUM))
353353 then false
354354 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
355355 if (byAdmins)
356356 then true
357357 else byOwner
358358 }
359359

github/deemru/w8io/169f3d6 
42.72 ms