tx · EdZUs4d844EMbecgwXifRgw1KxBW244Ti8iKpqm5whSB

3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx:  -0.01000000 Waves

2023.05.20 19:51 [2586550] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves

{ "type": 13, "id": "EdZUs4d844EMbecgwXifRgw1KxBW244Ti8iKpqm5whSB", "fee": 1000000, "feeAssetId": null, "timestamp": 1684601463988, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "4bEM5Aq7jSYjpSB3CejXqgD7N36EKDq2ajQrtchbNWvSxPKfwxrRx1pDmUZddPCJCb93h5CDuhHFMmPcSyZvJo5h" ], "script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgVSaWRlZQQHY1RvQnl0ZQkAoAMBCQCeAwEJANkEAQUBYwQJcmFuZG9tTnVtCQBqAgkAZAIJAGQCCQBkAgUHY1RvQnl0ZQkAsQkBCAUBaQ9jYWxsZXJQdWJsaWNLZXkIBQlsYXN0QmxvY2sGaGVpZ2h0CAUJbGFzdEJsb2NrCXRpbWVzdGFtcABkBA53aW5Qcm9iYWJpbGl0eQAoBAZnZXROdW0JAJoIAgUEdGhpcwINUmFuZG9tIE51bWJlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgIPUmFuZG9tIE51bWJlcjogBQlyYW5kb21OdW0FA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXluZ80o", "height": 2586550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AtkN3TvTbD1AGpFHrDmJPjKkYpUwyYsCk2tXs9XVAPE Next: FnwxsSvoiCPq72r5QcjKBqLBMQv7VK8BZdWwdBKiLQVX Diff:
OldNewDifferences
99 let assetID = i.payments[0].assetId
1010 let c = "Ridee"
1111 let cToByte = toInt(toBigInt(fromBase58String(c)))
12- let randomNum = (cToByte % 100)
12+ let randomNum = ((((cToByte + toInt(i.callerPublicKey)) + lastBlock.height) + lastBlock.timestamp) % 100)
1313 let winProbability = 40
1414 let getNum = getInteger(this, "Random Number")
1515 [IntegerEntry("Random Number: ", randomNum)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func roulette () = {
88 let bet = i.payments[0].amount
99 let assetID = i.payments[0].assetId
1010 let c = "Ridee"
1111 let cToByte = toInt(toBigInt(fromBase58String(c)))
12- let randomNum = (cToByte % 100)
12+ let randomNum = ((((cToByte + toInt(i.callerPublicKey)) + lastBlock.height) + lastBlock.timestamp) % 100)
1313 let winProbability = 40
1414 let getNum = getInteger(this, "Random Number")
1515 [IntegerEntry("Random Number: ", randomNum)]
1616 }
1717
1818
1919 @Verifier(tx)
2020 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2121

github/deemru/w8io/026f985 
33.18 ms