tx · F2QYekQkKhncyXz8SKqjfGa6SvG7NhV4S3QHGDh3e4aG 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves 2023.05.20 14:51 [2586264] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{ "type": 13, "id": "F2QYekQkKhncyXz8SKqjfGa6SvG7NhV4S3QHGDh3e4aG", "fee": 1000000, "feeAssetId": null, "timestamp": 1684583504487, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "42K68cgCP9rg3cCgVq8mYFWwmwqpx1wJRhVDG3ZikkYsfSxFf34LQs79fmkpZFcnbny9cMHjf63zeC4S7ppnH6bt" ], "script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgRSaWRlBAdjVG9CeXRlCQCgAwEJAJ4DAQkA3QQBBQFjBAlyYW5kb21OdW0JAGoCBQdjVG9CeXRlAGQEDndpblByb2JhYmlsaXR5ACgEC3dpblRyYW5zZmVyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgkAaAIFA2JldAACBQdhc3NldElEBQNuaWwECXdpbkFtb3VudAMJAGYCBQlyYW5kb21OdW0FDndpblByb2JhYmlsaXR5BQt3aW5UcmFuc2ZlcgAABA13cml0ZUxhc3RQbGF5CQDMCAIJAQxJbnRlZ2VyRW50cnkCAghsYXN0UGxheQUJcmFuZG9tTnVtBQNuaWwDCQBmAgUOd2luUHJvYmFiaWxpdHkFCXJhbmRvbU51bQkAlAoCBQt3aW5UcmFuc2ZlcgUNd3JpdGVMYXN0UGxheQkAlAoCCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgAABQdhc3NldElEBQNuaWwFDXdyaXRlTGFzdFBsYXkBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5Mx6k7g==", "height": 2586264, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Uweb62BE8nyR5CdxBREUg6iAFNC7dWLpCDeb7WTubFd Next: BZ4uBfwT1GxUjouTrktfKH4WYWDBf81Pa9MsCRgLNbEN Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | - | func definedLiquidity () = { | |
8 | - | let b = "Liquidity Token" | |
9 | - | let c = "LQT" | |
10 | - | let d = 8 | |
11 | - | let e = 1000000000 | |
12 | - | let f = $Tuple2(toBase58String(value(a.payments[0].assetId)), value(a.payments[0].amount)) | |
13 | - | let g = f._1 | |
14 | - | let h = f._2 | |
15 | - | let i = $Tuple2(toBase58String(value(a.payments[1].assetId)), value(a.payments[1].amount)) | |
16 | - | let j = i._1 | |
17 | - | let k = i._2 | |
18 | - | let l = assetBalance(this, value(a.payments[0].assetId)) | |
19 | - | let m = assetBalance(this, value(a.payments[1].assetId)) | |
20 | - | let n = if (if ((h != 0)) | |
21 | - | then true | |
22 | - | else (k != 0)) | |
23 | - | then (l * m) | |
24 | - | else throw("liquidity undifined") | |
25 | - | let o = if (if ((h == 0)) | |
26 | - | then true | |
27 | - | else (k == 0)) | |
28 | - | then 0 | |
29 | - | else ((h * k) / n) | |
30 | - | let p = [Issue(b, c, o, d, true)] | |
31 | - | nil | |
7 | + | func roulette () = { | |
8 | + | let b = a.payments[0].amount | |
9 | + | let c = a.payments[0].assetId | |
10 | + | let d = "Ride" | |
11 | + | let e = toInt(toBigInt(fromBase16String(d))) | |
12 | + | let f = (e % 100) | |
13 | + | let g = 40 | |
14 | + | let h = [ScriptTransfer(a.caller, (b * 2), c)] | |
15 | + | let i = if ((f > g)) | |
16 | + | then h | |
17 | + | else 0 | |
18 | + | let j = [IntegerEntry("lastPlay", f)] | |
19 | + | if ((g > f)) | |
20 | + | then $Tuple2(h, j) | |
21 | + | else $Tuple2([ScriptTransfer(a.caller, 0, c)], j) | |
32 | 22 | } | |
33 | 23 | ||
34 | 24 | ||
35 | - | @Verifier( | |
36 | - | func | |
25 | + | @Verifier(k) | |
26 | + | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) | |
37 | 27 |
github/deemru/w8io/169f3d6 31.56 ms ◑