tx · EkQ3xTy35fxw4sFQQehHByyNBiM3NyUZWMJn8qTMLy7Y

3N9qNNh15o84HrRZa511KX2jQtgLcmqnEgR:  -0.01000000 Waves

2024.06.11 15:53 [3146119] smart account 3N9qNNh15o84HrRZa511KX2jQtgLcmqnEgR > SELF 0.00000000 Waves

{ "type": 13, "id": "EkQ3xTy35fxw4sFQQehHByyNBiM3NyUZWMJn8qTMLy7Y", "fee": 1000000, "feeAssetId": null, "timestamp": 1718110408650, "version": 2, "chainId": 84, "sender": "3N9qNNh15o84HrRZa511KX2jQtgLcmqnEgR", "senderPublicKey": "45oG8LXhBqNC5fxcA6iwy3DhLFnsEUzUBwEm7VrWtFSK", "proofs": [ "4e2GuQ2aGX59zCWoP1py7wZh8kX4YWgNHZeZo6ZWBToqUJMjUudvsDALQ6hQuvv9YDoWbfVArKU62FYkiFdAcAb6" ], "script": "base64:CAISCAISBgoECBgICBIECgIICBIAEAAUcHJlZGljdGlvbk1heENvdW50ZXIAAwAKbWF4Q291bnRlcgAGAA1kZWZhdWx0UmF0aW5nAGQADnJhdGVBZGp1c3RtZW50ABQAB3Rva2VuSWQBIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAxwYXlvdXRBbW91bnQAgOHrFwAMcmF0aW5nQ3V0b2ZmADIABXJfbWF4APQDAAVzY2FsZQBkARFzZWFyY2hGb3JDb3VudGVycwIGaXRlbUlkB2NvdW50ZXIEEXNlYXJjaEZvckNvdW50ZXJzBAckbWF0Y2gwCQCiCAEJAKwCAgkArAICBQZpdGVtSWQCAV8JAKQDAQUHY291bnRlcgMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXMFByRtYXRjaDAFAXMCB05vIFVzZXIFEXNlYXJjaEZvckNvdW50ZXJzAQ9zZWFyY2hGb3JSYXRpbmcBB2FkZHJlc3MEBnJhdGluZwQHJG1hdGNoMAkAnwgBCQCsAgIFB2FkZHJlc3MCB19yYXRpbmcDCQABAgUHJG1hdGNoMAIDSW50BAFyBQ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bAFpAQxyZWdpc3RlclVzZXIABAxjbGllbnRBZHJlc3MJAKUIAQgFAWkGY2FsbGVyBA1zZWFyY2hGb3JVc2VyBAckbWF0Y2gwCQCfCAEJAKwCAgUMY2xpZW50QWRyZXNzAgdfcmF0aW5nAwkAAQIFByRtYXRjaDACA0ludAQBcwUHJG1hdGNoMAUBcwD///////////8BAwkBAiE9AgUNc2VhcmNoRm9yVXNlcgD///////////8BCQACAQITVXNlciBhbHJlYWR5IGV4aXN0cwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQxjbGllbnRBZHJlc3MCB19yYXRpbmcFDWRlZmF1bHRSYXRpbmcFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlROVzv", "height": 3146119, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 77XM4E5pXgfanzLaPDvsfQwPA1pLgy6L9ZWyyQp1Q1JD Next: 4g7Tf82HcZ7n3JmGZSKkETgBA3jMm3DwDQQibHvvEGk6 Diff:
OldNewDifferences
230230 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), (predictionCounter + 1)), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_final"), true), BooleanEntry((itemId + "_cancelled"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId), ScriptTransfer(Address(fromBase58String(clientAdress)), calculatedAmount, tokenId), IntegerEntry((clientAdress + "_rating"), newRating), StringEntry((itemId + "_final_prediction"), prediction)]
231231 }
232232 else if ((newCounter >= maxCounter))
233- then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId)]
233+ then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), (predictionCounter + 1)), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId)]
234234 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), (predictionCounter + 1)), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_final"), false), BooleanEntry((itemId + "_cancelled"), false)]
235- else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), 1), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false)]
235+ else if ((newCounter >= maxCounter))
236+ then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), 1), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId)]
237+ else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), 1), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false)]
236238 }
237239 }
238240 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let predictionMaxCounter = 3
55
66 let maxCounter = 6
77
88 let defaultRating = 100
99
1010 let rateAdjustment = 20
1111
1212 let tokenId = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH'
1313
1414 let payoutAmount = 50000000
1515
1616 let ratingCutoff = 50
1717
1818 let r_max = 500
1919
2020 let scale = 100
2121
2222 func searchForCounters (itemId,counter) = {
2323 let searchForCounters = match getString(((itemId + "_") + toString(counter))) {
2424 case s: String =>
2525 s
2626 case _ =>
2727 "No User"
2828 }
2929 searchForCounters
3030 }
3131
3232
3333 func searchForRating (address) = {
3434 let rating = match getInteger((address + "_rating")) {
3535 case r: Int =>
3636 r
3737 case _ =>
3838 defaultRating
3939 }
4040 rating
4141 }
4242
4343
4444 func searchForAddressPrediction (itemId,adress) = {
4545 let searchForPrediction = match getString(((itemId + "_") + adress)) {
4646 case s: String =>
4747 s
4848 case _ =>
4949 "Not Found"
5050 }
5151 searchForPrediction
5252 }
5353
5454
5555 func searchForPredictionCounter (itemId,prediction) = {
5656 let searchForPrediction = match getInteger(((itemId + "_prediction_") + prediction)) {
5757 case s: Int =>
5858 s
5959 case _ =>
6060 "Not Found"
6161 }
6262 searchForPrediction
6363 }
6464
6565
6666 func findPredictionAdresses (itemId,counter) = {
6767 let adressList = if ((counter >= 5))
6868 then {
6969 let adress1 = searchForCounters(itemId, 1)
7070 let adress2 = searchForCounters(itemId, 2)
7171 let adress3 = searchForCounters(itemId, 3)
7272 let adress4 = searchForCounters(itemId, 4)
7373 let adress5 = searchForCounters(itemId, 5)
7474 (((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5)
7575 }
7676 else if ((counter >= 4))
7777 then {
7878 let adress1 = searchForCounters(itemId, 1)
7979 let adress2 = searchForCounters(itemId, 2)
8080 let adress3 = searchForCounters(itemId, 3)
8181 let adress4 = searchForCounters(itemId, 4)
8282 ((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4)
8383 }
8484 else if ((counter >= 3))
8585 then {
8686 let adress1 = searchForCounters(itemId, 1)
8787 let adress2 = searchForCounters(itemId, 2)
8888 let adress3 = searchForCounters(itemId, 3)
8989 (((nil :+ adress1) :+ adress2) :+ adress3)
9090 }
9191 else if ((counter >= 2))
9292 then {
9393 let adress1 = searchForCounters(itemId, 1)
9494 let adress2 = searchForCounters(itemId, 2)
9595 ((nil :+ adress1) :+ adress2)
9696 }
9797 else {
9898 let adress1 = searchForCounters(itemId, 1)
9999 (nil :+ adress1)
100100 }
101101 adressList
102102 }
103103
104104
105105 func calculatePayout (r_player,r_max) = {
106106 let ratio = ((r_player * 100) / r_max)
107107 let payout = ((payoutAmount * ratio) / 100)
108108 payout
109109 }
110110
111111
112112 func calculateNewRating (r_player,r_average,k,actualScore) = {
113113 let ratin_factor = ((r_player * scale) / r_max)
114114 if ((actualScore == 1))
115115 then {
116116 let adjustment = ((k * (100 - ratin_factor)) / scale)
117117 (r_player + adjustment)
118118 }
119119 else {
120120 let adjustment = ((-(k) * (20 + ratin_factor)) / scale)
121121 (r_player + adjustment)
122122 }
123123 }
124124
125125
126126 @Callable(i)
127127 func adjustRatingsAndPayoutParticipants (itemId,addressList,lastCallerAddress,finalPrediction) = {
128128 let caller = toString(i.caller)
129129 if ((caller != toString(this)))
130130 then throw("You are not allowed to call this function")
131131 else {
132132 func updateRatingsFunc (accum,address) = {
133133 let rating = searchForRating(address)
134134 let prediction = searchForAddressPrediction(itemId, address)
135135 let actualScore = if ((prediction == finalPrediction))
136136 then 1
137137 else 0
138138 let newRating = calculateNewRating(rating, r_max, rateAdjustment, actualScore)
139139 let payout = if ((prediction == finalPrediction))
140140 then true
141141 else false
142142 let updatedEntries = (accum :+ IntegerEntry((address + "_rating"), newRating))
143143 let calculatedAmount = calculatePayout(newRating, r_max)
144144 if (payout)
145145 then (updatedEntries :+ ScriptTransfer(Address(fromBase58String(address)), calculatedAmount, tokenId))
146146 else updatedEntries
147147 }
148148
149149 let updatedRatings = {
150150 let $l = addressList
151151 let $s = size($l)
152152 let $acc0 = nil
153153 func $f0_1 ($a,$i) = if (($i >= $s))
154154 then $a
155155 else updateRatingsFunc($a, $l[$i])
156156
157157 func $f0_2 ($a,$i) = if (($i >= $s))
158158 then $a
159159 else throw("List size exceeds 5")
160160
161161 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
162162 }
163163 (updatedRatings :+ BooleanEntry((itemId + "_adjusted"), true))
164164 }
165165 }
166166
167167
168168
169169 @Callable(i)
170170 func savePrediction (itemId,prediction) = {
171171 let clientAdress = toString(i.caller)
172172 let searchForUser = match getInteger((clientAdress + "_rating")) {
173173 case s: Int =>
174174 s
175175 case _ =>
176176 "User does not exist"
177177 }
178178 if ((searchForUser == "User does not exist"))
179179 then throw("User does not exist")
180180 else {
181181 let isFinal = match getBoolean((itemId + "_final")) {
182182 case s: Boolean =>
183183 s
184184 case _ =>
185185 false
186186 }
187187 if (isFinal)
188188 then throw("Final prediction already made")
189189 else {
190190 let isCanceled = match getBoolean((itemId + "_cancelled")) {
191191 case s: Boolean =>
192192 s
193193 case _ =>
194194 false
195195 }
196196 if (isCanceled)
197197 then throw("Final prediction already made")
198198 else {
199199 let clientRating = searchForRating(clientAdress)
200200 if ((ratingCutoff >= clientRating))
201201 then throw("You are not allowed to participate anymore")
202202 else {
203203 let searchForCounter = match getInteger((itemId + "_counter")) {
204204 case s: Int =>
205205 s
206206 case _ =>
207207 -1
208208 }
209209 if ((searchForCounter >= 1))
210210 then {
211211 let adressList = findPredictionAdresses(itemId, searchForCounter)
212212 if (containsElement(adressList, clientAdress))
213213 then throw("This User already gave a Prediction")
214214 else {
215215 let predictionCounter = match getInteger(((itemId + "_prediction_") + prediction)) {
216216 case s: Int =>
217217 s
218218 case _ =>
219219 404
220220 }
221221 let newCounter = (searchForCounter + 1)
222222 if ((predictionCounter != 404))
223223 then if (((predictionCounter + 1) == predictionMaxCounter))
224224 then {
225225 let newRating = calculateNewRating(clientRating, r_max, rateAdjustment, 1)
226226 let calculatedAmount = calculatePayout(newRating, r_max)
227227 let invokeAdjustRating = invoke(this, "adjustRatingsAndPayoutParticipants", [itemId, adressList, clientAdress, prediction], nil)
228228 if ((invokeAdjustRating != invokeAdjustRating))
229229 then throw("Strict value is not equal to itself.")
230230 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), (predictionCounter + 1)), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_final"), true), BooleanEntry((itemId + "_cancelled"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId), ScriptTransfer(Address(fromBase58String(clientAdress)), calculatedAmount, tokenId), IntegerEntry((clientAdress + "_rating"), newRating), StringEntry((itemId + "_final_prediction"), prediction)]
231231 }
232232 else if ((newCounter >= maxCounter))
233- then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId)]
233+ then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), (predictionCounter + 1)), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId)]
234234 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), (predictionCounter + 1)), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_final"), false), BooleanEntry((itemId + "_cancelled"), false)]
235- else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), 1), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false)]
235+ else if ((newCounter >= maxCounter))
236+ then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), 1), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false), DeleteEntry(("updated_" + itemId)), StringEntry(("final_" + itemId), itemId)]
237+ else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry(((itemId + "_prediction_") + prediction), 1), IntegerEntry((itemId + "_counter"), newCounter), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false)]
236238 }
237239 }
238240 else {
239241 let searchForNewItem = match getString(("new_" + itemId)) {
240242 case s: String =>
241243 s
242244 case _ =>
243245 "Item not Found"
244246 }
245247 if ((searchForNewItem == "Item not Found"))
246248 then throw("Item not found")
247249 else [StringEntry(((itemId + "_") + toString(1)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), 1), IntegerEntry((itemId + "_predictionCounter"), 1), DeleteEntry(("new_" + itemId)), StringEntry(("updated_" + itemId), itemId)]
248250 }
249251 }
250252 }
251253 }
252254 }
253255 }
254256
255257
256258
257259 @Callable(i)
258260 func registerUser () = {
259261 let clientAdress = toString(i.caller)
260262 let searchForUser = match getInteger((clientAdress + "_rating")) {
261263 case s: Int =>
262264 s
263265 case _ =>
264266 -1
265267 }
266268 if ((searchForUser != -1))
267269 then throw("User already exists")
268270 else [IntegerEntry((clientAdress + "_rating"), defaultRating)]
269271 }
270272
271273
272274 @Verifier(tx)
273275 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
274276

github/deemru/w8io/169f3d6 
42.48 ms