tx · 9kWibZUrYvEEt4CD46MRQLMiVkAcBpN9GAspkVPzAF8n

3N1SNsqhyGDYAA7b8ZTgwhD7QHGJMT4nBJX:  -0.01000000 Waves

2022.04.03 11:49 [1992179] smart account 3N1SNsqhyGDYAA7b8ZTgwhD7QHGJMT4nBJX > SELF 0.00000000 Waves

{ "type": 13, "id": "9kWibZUrYvEEt4CD46MRQLMiVkAcBpN9GAspkVPzAF8n", "fee": 1000000, "feeAssetId": null, "timestamp": 1648975816861, "version": 2, "chainId": 84, "sender": "3N1SNsqhyGDYAA7b8ZTgwhD7QHGJMT4nBJX", "senderPublicKey": "B6nC1bV4M26PtCHchSuaoTMtRz8Kp4ywEkErAYbfJ8NY", "proofs": [ "62em2694S2GYBZEUT4Z1UbumAYq8N38wmm8nRpJoUUgHhYKDVe3TXrGn7a4P5FqpaRAPgpryhCSh2FEPzRHhuDjq" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAIAAAAAAVvd25lcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVIxWe3zo2WPdJvaZ/FYhrveeShfFdKOL0AAAAAAQbWFya2V0aW5nQWNjb3VudAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVH5kI3ju3mxTVt6OPE3y1QbXZWWQppLEWAAAAAAUY29tbWlzc2lvblBlcmNlbnRhZ2UAAAAAAAAAABQAAAAAC2VudHJ5QW1vdW50AAAAAAAAAAAFAAAAAAtkZW5vbWluYXRvcgAAAAAAAAAAZAAAAAAQY3VycmVudFByaWNlUG9vbAAAAAAAAAAAAAAAAAAHcGxheWVycwUAAAADbmlsAQAAAApnZXRQbGF5ZXJzAAAAAAUAAAAHcGxheWVycwAAAAIAAAABaQEAAAAFZW50ZXIAAAAABAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAABnAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAtlbnRyeUFtb3VudAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABBtYXJrZXRpbmdBY2NvdW50CQAAaQAAAAIJAABoAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50CQAAZQAAAAIFAAAAC2Rlbm9taW5hdG9yBQAAABRjb21taXNzaW9uUGVyY2VudGFnZQUAAAALZGVub21pbmF0b3IFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAFb3duZXIIBQAAAAdwYXltZW50AAAABmFtb3VudAUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAEJAAEsAAAAAgIAAAAfUGF5bWVudCBzaG91bGQgYmUgZ3JlYXRlciB0aGFuIAkAAaQAAAABCQAAaQAAAAIFAAAAC2VudHJ5QW1vdW50BQAAAAtkZW5vbWluYXRvcgAAAAFpAQAAAApwaWNrV2lubmVyAAAAAAkBAAAACFdyaXRlU2V0AAAAAQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm3KJpd", "height": 1992179, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BAAbNPXiubUtakxy8Zf7FpCJoStP1Jv6dpy3BhxUJxxK Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let owner = Address(base58'3N2i7ygFVfQLEoupDNpBT7FLcjh4Sb38wm9')
5+
6+let marketingAccount = Address(base58'3N1SNsqhyGDYAA7b8ZTgwhD7QHGJMT4nBJX')
7+
8+let commissionPercentage = 20
9+
10+let entryAmount = 5
11+
12+let denominator = 100
13+
14+let currentPricePool = 0
15+
16+let players = nil
17+
18+func getPlayers () = players
19+
20+
21+@Callable(i)
22+func enter () = {
23+ let callerAddress = toBase58String(i.caller.bytes)
24+ let payment = extract(i.payment)
25+ if ((payment.amount >= entryAmount))
26+ then TransferSet([ScriptTransfer(marketingAccount, ((payment.amount * (denominator - commissionPercentage)) / denominator), unit), ScriptTransfer(owner, payment.amount, unit)])
27+ else throw(("Payment should be greater than " + toString((entryAmount / denominator))))
28+ }
29+
30+
31+
32+@Callable(i)
33+func pickWinner () = WriteSet(nil)
34+
35+
36+@Verifier(tx)
37+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
38+

github/deemru/w8io/169f3d6 
19.27 ms