tx · 4mmixvcrru92yoyqKzaGjnqKhsUjush4SaRmr66PunQY

3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos:  -0.01500000 Waves

2024.06.04 10:25 [3135647] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves

{ "type": 13, "id": "4mmixvcrru92yoyqKzaGjnqKhsUjush4SaRmr66PunQY", "fee": 1500000, "feeAssetId": null, "timestamp": 1717485975593, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "3Dic9QMhLWcaAiQJ4EUGaohb2Qner7Lsn5d3hiintmHmH8XZd34XWPgTH7ar6BH3sKWi8syenoQSLUY5tpSxG3tA" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAAPAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAAAAAAOcmF0ZUFkanVzdG1lbnQAAAAAAAAAABQAAAAAB3Rva2VuSWQBAAAAIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAL68IAAAAAADHJhdGluZ0N1dG9mZgAAAAAAAAAAMgAAAAAFcl9tYXgAAAAAAAAAAfQAAAAABXNjYWxlAAAAAAAAAABkAQAAABFzZWFyY2hGb3JDb3VudGVycwAAAAIAAAAGaXRlbUlkAAAAB2NvdW50ZXIEAAAAEXNlYXJjaEZvckNvdW50ZXJzBAAAAAckbWF0Y2gwCQAEIgAAAAEJAAEsAAAAAgkAASwAAAACBQAAAAZpdGVtSWQCAAAAAV8JAAGkAAAAAQUAAAAHY291bnRlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3Ry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3135647, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G5Dda9KrcBGYpRkjo7e7XMUa1yEp725mAzkrZzaEenia Next: 5tdrBtY5Y9NTfeYbV2XqAyWWKcqSx9tJyshjbFeqd54p Diff:
OldNewDifferences
1111
1212 let tokenId = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH'
1313
14-let payoutAmount = 100000000
14+let payoutAmount = 50000000
1515
1616 let ratingCutoff = 50
1717
18-let r_average = 100
18+let r_max = 500
1919
20-let scale = 1000
20+let scale = 100
2121
2222 func searchForCounters (itemId,counter) = {
2323 let searchForCounters = match getString(((itemId + "_") + toString(counter))) {
9191 }
9292
9393
94-func calculateExpectedScore (r_player,r_average) = {
95- let diff = (r_average - r_player)
96- let exponent = (diff / r_average)
97- let powerOfTen = pow(10, 0, exponent, 0, 0, HALFUP)
98- let denominator = (scale + powerOfTen)
99- (scale / denominator)
100- }
101-
102-
103-func calculatePayout (r_player,r_average) = {
104- let ratio = ((r_player * 100) / r_average)
94+func calculatePayout (r_player,r_max) = {
95+ let ratio = ((r_player * 100) / r_max)
10596 let payout = ((payoutAmount * ratio) / 100)
10697 payout
10798 }
10899
109100
110101 func calculateNewRating (r_player,r_average,k,actualScore) = {
111- let expectedScore = calculateExpectedScore(r_player, r_average)
112- let actualScoreScaled = (actualScore * scale)
113- let delta_r = ((k * (actualScore - expectedScore)) / scale)
114- (r_player + delta_r)
102+ let ratin_factor = ((r_player * scale) / r_max)
103+ if ((actualScore == 1))
104+ then {
105+ let adjustment = ((k * (100 - ratin_factor)) / scale)
106+ (r_player + adjustment)
107+ }
108+ else {
109+ let adjustment = ((-(k) * (20 + ratin_factor)) / scale)
110+ (r_player + adjustment)
111+ }
115112 }
116113
117114
127124 let actualScore = if ((prediction == finalPrediction))
128125 then 1
129126 else 0
130- let newRating = calculateNewRating(rating, r_average, rateAdjustment, actualScore)
127+ let newRating = calculateNewRating(rating, r_max, rateAdjustment, actualScore)
131128 let payout = if ((prediction == finalPrediction))
132129 then true
133130 else false
134131 let updatedEntries = (accum :+ IntegerEntry((address + "_rating"), newRating))
135- let calculatedAmount = calculatePayout(newRating, r_average)
132+ let calculatedAmount = calculatePayout(newRating, r_max)
136133 if (payout)
137134 then (updatedEntries :+ ScriptTransfer(Address(fromBase58String(address)), calculatedAmount, tokenId))
138135 else updatedEntries
221218 if ((lastPrediction == prediction))
222219 then if (((predictionCounter + 1) == predictionMaxCounter))
223220 then {
224- let newRating = calculateNewRating(clientRating, r_average, rateAdjustment, 1)
225- let calculatedAmount = calculatePayout(newRating, r_average)
221+ let newRating = calculateNewRating(clientRating, r_max, rateAdjustment, 1)
222+ let calculatedAmount = calculatePayout(newRating, r_max)
226223 let invokeAdjustRating = invoke(this, "adjustRatingsAndPayoutParticipants", [itemId, adressList, clientAdress, prediction], nil)
227224 if ((invokeAdjustRating != invokeAdjustRating))
228225 then throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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
14-let payoutAmount = 100000000
14+let payoutAmount = 50000000
1515
1616 let ratingCutoff = 50
1717
18-let r_average = 100
18+let r_max = 500
1919
20-let scale = 1000
20+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 findPredictionAdresses (itemId,counter) = {
5656 let adressList = if ((counter >= 5))
5757 then {
5858 let adress1 = searchForCounters(itemId, 1)
5959 let adress2 = searchForCounters(itemId, 2)
6060 let adress3 = searchForCounters(itemId, 3)
6161 let adress4 = searchForCounters(itemId, 4)
6262 let adress5 = searchForCounters(itemId, 5)
6363 (((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5)
6464 }
6565 else if ((counter >= 4))
6666 then {
6767 let adress1 = searchForCounters(itemId, 1)
6868 let adress2 = searchForCounters(itemId, 2)
6969 let adress3 = searchForCounters(itemId, 3)
7070 let adress4 = searchForCounters(itemId, 4)
7171 ((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4)
7272 }
7373 else if ((counter >= 3))
7474 then {
7575 let adress1 = searchForCounters(itemId, 1)
7676 let adress2 = searchForCounters(itemId, 2)
7777 let adress3 = searchForCounters(itemId, 3)
7878 (((nil :+ adress1) :+ adress2) :+ adress3)
7979 }
8080 else if ((counter >= 2))
8181 then {
8282 let adress1 = searchForCounters(itemId, 1)
8383 let adress2 = searchForCounters(itemId, 2)
8484 ((nil :+ adress1) :+ adress2)
8585 }
8686 else {
8787 let adress1 = searchForCounters(itemId, 1)
8888 (nil :+ adress1)
8989 }
9090 adressList
9191 }
9292
9393
94-func calculateExpectedScore (r_player,r_average) = {
95- let diff = (r_average - r_player)
96- let exponent = (diff / r_average)
97- let powerOfTen = pow(10, 0, exponent, 0, 0, HALFUP)
98- let denominator = (scale + powerOfTen)
99- (scale / denominator)
100- }
101-
102-
103-func calculatePayout (r_player,r_average) = {
104- let ratio = ((r_player * 100) / r_average)
94+func calculatePayout (r_player,r_max) = {
95+ let ratio = ((r_player * 100) / r_max)
10596 let payout = ((payoutAmount * ratio) / 100)
10697 payout
10798 }
10899
109100
110101 func calculateNewRating (r_player,r_average,k,actualScore) = {
111- let expectedScore = calculateExpectedScore(r_player, r_average)
112- let actualScoreScaled = (actualScore * scale)
113- let delta_r = ((k * (actualScore - expectedScore)) / scale)
114- (r_player + delta_r)
102+ let ratin_factor = ((r_player * scale) / r_max)
103+ if ((actualScore == 1))
104+ then {
105+ let adjustment = ((k * (100 - ratin_factor)) / scale)
106+ (r_player + adjustment)
107+ }
108+ else {
109+ let adjustment = ((-(k) * (20 + ratin_factor)) / scale)
110+ (r_player + adjustment)
111+ }
115112 }
116113
117114
118115 @Callable(i)
119116 func adjustRatingsAndPayoutParticipants (itemId,addressList,lastCallerAddress,finalPrediction) = {
120117 let caller = toString(i.caller)
121118 if ((caller != toString(this)))
122119 then throw("You are not allowed to call this function")
123120 else {
124121 func updateRatingsFunc (accum,address) = {
125122 let rating = searchForRating(address)
126123 let prediction = searchForAddressPrediction(itemId, address)
127124 let actualScore = if ((prediction == finalPrediction))
128125 then 1
129126 else 0
130- let newRating = calculateNewRating(rating, r_average, rateAdjustment, actualScore)
127+ let newRating = calculateNewRating(rating, r_max, rateAdjustment, actualScore)
131128 let payout = if ((prediction == finalPrediction))
132129 then true
133130 else false
134131 let updatedEntries = (accum :+ IntegerEntry((address + "_rating"), newRating))
135- let calculatedAmount = calculatePayout(newRating, r_average)
132+ let calculatedAmount = calculatePayout(newRating, r_max)
136133 if (payout)
137134 then (updatedEntries :+ ScriptTransfer(Address(fromBase58String(address)), calculatedAmount, tokenId))
138135 else updatedEntries
139136 }
140137
141138 let updatedRatings = {
142139 let $l = addressList
143140 let $s = size($l)
144141 let $acc0 = nil
145142 func $f0_1 ($a,$i) = if (($i >= $s))
146143 then $a
147144 else updateRatingsFunc($a, $l[$i])
148145
149146 func $f0_2 ($a,$i) = if (($i >= $s))
150147 then $a
151148 else throw("List size exceeds 5")
152149
153150 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
154151 }
155152 (updatedRatings :+ BooleanEntry((itemId + "_adjusted"), true))
156153 }
157154 }
158155
159156
160157
161158 @Callable(i)
162159 func savePrediction (itemId,prediction) = {
163160 let clientAdress = toString(i.caller)
164161 let searchForUser = match getInteger((clientAdress + "_rating")) {
165162 case s: Int =>
166163 s
167164 case _ =>
168165 "User does not exist"
169166 }
170167 if ((searchForUser == "User does not exist"))
171168 then throw("User does not exist")
172169 else {
173170 let isFinal = match getBoolean((itemId + "_final")) {
174171 case s: Boolean =>
175172 s
176173 case _ =>
177174 false
178175 }
179176 if (isFinal)
180177 then throw("Final prediction already made")
181178 else {
182179 let isCanceled = match getBoolean((itemId + "_cancelled")) {
183180 case s: Boolean =>
184181 s
185182 case _ =>
186183 false
187184 }
188185 if (isCanceled)
189186 then throw("Final prediction already made")
190187 else {
191188 let clientRating = searchForRating(clientAdress)
192189 if ((ratingCutoff >= clientRating))
193190 then throw("You are not allowed to participate anymore")
194191 else {
195192 let searchForCounter = match getInteger((itemId + "_counter")) {
196193 case s: Int =>
197194 s
198195 case _ =>
199196 -1
200197 }
201198 if ((searchForCounter >= 1))
202199 then {
203200 let adressList = findPredictionAdresses(itemId, searchForCounter)
204201 if (containsElement(adressList, clientAdress))
205202 then throw("This User already gave a Prediction")
206203 else {
207204 let predictionCounter = match getInteger((itemId + "_predictionCounter")) {
208205 case s: Int =>
209206 s
210207 case _ =>
211208 -1
212209 }
213210 let lastPredictionAdress = adressList[(size(adressList) - 1)]
214211 let lastPrediction = match getString(((itemId + "_") + lastPredictionAdress)) {
215212 case s: String =>
216213 s
217214 case _ =>
218215 "no Prediction Found"
219216 }
220217 let newCounter = (searchForCounter + 1)
221218 if ((lastPrediction == prediction))
222219 then if (((predictionCounter + 1) == predictionMaxCounter))
223220 then {
224- let newRating = calculateNewRating(clientRating, r_average, rateAdjustment, 1)
225- let calculatedAmount = calculatePayout(newRating, r_average)
221+ let newRating = calculateNewRating(clientRating, r_max, rateAdjustment, 1)
222+ let calculatedAmount = calculatePayout(newRating, r_max)
226223 let invokeAdjustRating = invoke(this, "adjustRatingsAndPayoutParticipants", [itemId, adressList, clientAdress, prediction], nil)
227224 if ((invokeAdjustRating != invokeAdjustRating))
228225 then throw("Strict value is not equal to itself.")
229226 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter + 1)), BooleanEntry((itemId + "_final"), true), BooleanEntry((itemId + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(clientAdress)), calculatedAmount, tokenId), IntegerEntry((clientAdress + "_rating"), newRating)]
230227 }
231228 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter + 1)), BooleanEntry((itemId + "_final"), false), BooleanEntry((itemId + "_cancelled"), false)]
232229 else if ((newCounter >= maxCounter))
233230 then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter - 1)), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false)]
234231 else if (((predictionCounter - 1) == 0))
235232 then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), 1), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false), StringEntry("test", lastPrediction), IntegerEntry("test2", size(adressList))]
236233 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter - 1)), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false), StringEntry("test", lastPrediction), IntegerEntry("test2", size(adressList))]
237234 }
238235 }
239236 else {
240237 let searchForNewItem = match getString(("new_" + itemId)) {
241238 case s: String =>
242239 s
243240 case _ =>
244241 "Item not Found"
245242 }
246243 if ((searchForNewItem == "Item not Found"))
247244 then throw("Item not found")
248245 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)]
249246 }
250247 }
251248 }
252249 }
253250 }
254251 }
255252
256253
257254
258255 @Callable(i)
259256 func registerUser () = {
260257 let clientAdress = toString(i.caller)
261258 let searchForUser = match getInteger((clientAdress + "_rating")) {
262259 case s: Int =>
263260 s
264261 case _ =>
265262 -1
266263 }
267264 if ((searchForUser != -1))
268265 then throw("User already exists")
269266 else [IntegerEntry((clientAdress + "_rating"), defaultRating)]
270267 }
271268
272269
273270 @Verifier(tx)
274271 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
275272

github/deemru/w8io/026f985 
44.15 ms