tx · 4fz5MYJkceeFRBD82nrm9Wotsnz7L9C5uujkmyx1mdo1 3NAQv6cVMYDCJqNC8vLChQyVeWaEehKr9gw: -0.01000000 Waves 2021.03.03 18:22 [1421670] smart account 3NAQv6cVMYDCJqNC8vLChQyVeWaEehKr9gw > SELF 0.00000000 Waves
{ "type": 13, "id": "4fz5MYJkceeFRBD82nrm9Wotsnz7L9C5uujkmyx1mdo1", "fee": 1000000, "feeAssetId": null, "timestamp": 1614785057216, "version": 1, "sender": "3NAQv6cVMYDCJqNC8vLChQyVeWaEehKr9gw", "senderPublicKey": "jQKyxef3v7nco9W1qN6sb7RTm5fH6R73WnNXmJCB2vK", "proofs": [ "451efjvuGS9U71jLbP3rGpHJPz9QqqebQnRedsdV61RTCAAWzHG8eTWyQ7Yn7G2CmhC738AAbthqFC9AjSccqyXD" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAUAAAAABE5TQlQBAAAAIJiaP8dHgV6qmAVLA1XnN25HWE4J95YrI293QXC0yYlIAAAAAARTV09QAQAAACA75EEzBXnyH/9IV4ZotwZUe0mBNQBuoDiRzvIwvDYBxwAAAAAEVVNETgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAABFVTRFQBAAAAIEIDqIdid5eDLTxDW+mfsfyFV4ZxuSCk39+08H+vCSkMAAAAAARVU0RDAQAAACCHWAIR0Smhk5/iPVB8EcdPbcBOxqIGyOxMh3O4R6D7BAAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAAAW8FAAAAByRtYXRjaDAEAAAACU5zYnRXYXZlcwMJAAAAAAAAAggIBQAAAAFvAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAETlNCVAkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgIBQAAAAFvAAAACWFzc2V0UGFp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AAAGcHJvb2ZzAAAAAAAAAAAACAUAAAADdHR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAAAAAAAAggFAAAAA3R0eAAAAAlyZWNpcGllbnQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQt7j5Bmy4wViU9jBYWyupyKZiY4Fc3gT4GCQAAAAAAAAIIBQAAAAN0dHgAAAAJcmVjaXBpZW50CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUfR7upM8KKCfBBa2kgr3t/AAHTlsN+Zw2BwcS7DSO", "chainId": 84, "height": 1421670, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let NSBT = base58'BGhPYquXSK6UYjnPLEn94gFhetp4Jvf7toekEY4x1VDH' | |
5 | + | ||
6 | + | let SWOP = base58'52nvaZGa7ahqa21ER2PAMBVjMi7wC2nWYCNmLvj8QjHx' | |
7 | + | ||
8 | + | let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
9 | + | ||
10 | + | let USDT = base58'5Sh9KghfkZyhjwuodovDhB6PghDUGBHiAPZ4MkrPgKtX' | |
11 | + | ||
12 | + | let USDC = base58'A7Ksh7fXyqm1KhKAiK3bAB2aiPSitQQF6v1pyu9SS3FR' | |
13 | + | ||
14 | + | ||
15 | + | @Verifier(tx) | |
16 | + | func verify () = match tx { | |
17 | + | case o: Order => | |
18 | + | let NsbtWaves = if ((o.assetPair.amountAsset == NSBT)) | |
19 | + | then !(isDefined(o.assetPair.priceAsset)) | |
20 | + | else false | |
21 | + | let SwopWaves = if ((o.assetPair.amountAsset == SWOP)) | |
22 | + | then !(isDefined(o.assetPair.priceAsset)) | |
23 | + | else false | |
24 | + | let WavesUsdn = if (!(isDefined(o.assetPair.amountAsset))) | |
25 | + | then (o.assetPair.priceAsset == USDN) | |
26 | + | else false | |
27 | + | let UsdtUsdn = if ((o.assetPair.amountAsset == USDT)) | |
28 | + | then (o.assetPair.priceAsset == USDN) | |
29 | + | else false | |
30 | + | let UsdcUsdn = if ((o.assetPair.amountAsset == USDC)) | |
31 | + | then (o.assetPair.priceAsset == USDN) | |
32 | + | else false | |
33 | + | if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)) | |
34 | + | then if (if (if (if (NsbtWaves) | |
35 | + | then true | |
36 | + | else SwopWaves) | |
37 | + | then true | |
38 | + | else WavesUsdn) | |
39 | + | then true | |
40 | + | else UsdtUsdn) | |
41 | + | then true | |
42 | + | else UsdcUsdn | |
43 | + | else false | |
44 | + | case ttx: TransferTransaction => | |
45 | + | if (sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey)) | |
46 | + | then if ((ttx.recipient == Address(base58'3Mt6waynUrdiKJT9dAsCq17C8kJksLhKrAZ'))) | |
47 | + | then true | |
48 | + | else (ttx.recipient == Address(base58'3N1KfJ78JmtC1EY8c2c2TwMdqqXFLjuin6R')) | |
49 | + | else false | |
50 | + | case _ => | |
51 | + | false | |
52 | + | } | |
53 | + |
github/deemru/w8io/169f3d6 18.08 ms ◑