tx · 4jnV3NgdCcjb977SpMg2ZoYwYz4EJSwQ2FNwy6ztgAcX 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb: -1.00000000 Waves 2019.03.17 13:49 [540098] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 ZAraa
{ "type": 15, "id": "4jnV3NgdCcjb977SpMg2ZoYwYz4EJSwQ2FNwy6ztgAcX", "fee": 100000000, "feeAssetId": null, "timestamp": 1552819751190, "version": 1, "sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb", "senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf", "proofs": [ "4w4XmvGucutTmAHHDeeTCJWXm6pTqzfdFRg22xKoW9nr3UUERynqkKeGknkedDUa6EFf5k83ewwyjYnAXWhZW79S" ], "assetId": "6uTUhCBEKUcWVxKz8sHJ2oh616PmmGPMFV1cr2Hx9Ggu", "script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUn3ENnb2h8+cM5MoAZuZG+9HctthQtzPqBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAANidXkJAAH0AAAAAwgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAP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AAAJ0eAUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAADZZb3UgY2Fubm90IHNlbmQgdGhpcyBhc3NldCB2aWEgTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAaWW91IGNhbm5vdCBidXJuIHRoaXMgYXNzZXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBge9Nzdt", "chainId": 84, "height": 540098, "spentComplexity": 0 } View: original | compacted Prev: H7TEMpGdDVEZuQPKLEiM4RZAX1uXCix2JmaLXFrchhX9 Next: H7H3triYRwL1D5cF389NbUPvqZSPk3x6u3EJP53GDzHs Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | else throw("Only whitelist can sell this asset") | |
27 | 27 | else false) | |
28 | 28 | then true | |
29 | - | else if ((tx.sellOrder.amount | |
30 | - | then | |
31 | - | else | |
29 | + | else if ((am > tx.sellOrder.amount)) | |
30 | + | then throw("Min sell ammount = 60") | |
31 | + | else true | |
32 | 32 | case tx: MassTransferTransaction => | |
33 | 33 | if ((tx.sender == issuer)) | |
34 | 34 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let issuer = Address(base58'3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb') | |
4 | 4 | match tx { | |
5 | 5 | case tx: ExchangeTransaction => | |
6 | 6 | let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey) | |
7 | 7 | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) | |
8 | 8 | let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
9 | 9 | let buyOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
10 | 10 | let sellOrderSenderCategory = getString(issuer, sellOrderSender) | |
11 | 11 | let buyOrderSenderCategory = getString(issuer, buyOrderSender) | |
12 | 12 | let am = 6000000000 | |
13 | 13 | if (if (if (buy) | |
14 | 14 | then if (if (isDefined(buyOrderSenderCategory)) | |
15 | 15 | then (extract(sellOrderSenderCategory) == "ambassador") | |
16 | 16 | else false) | |
17 | 17 | then true | |
18 | 18 | else throw("Only whitelist can buy this asset") | |
19 | 19 | else false) | |
20 | 20 | then true | |
21 | 21 | else if (sell) | |
22 | 22 | then if (if (isDefined(sellOrderSenderCategory)) | |
23 | 23 | then (extract(sellOrderSenderCategory) == "ambassador") | |
24 | 24 | else false) | |
25 | 25 | then true | |
26 | 26 | else throw("Only whitelist can sell this asset") | |
27 | 27 | else false) | |
28 | 28 | then true | |
29 | - | else if ((tx.sellOrder.amount | |
30 | - | then | |
31 | - | else | |
29 | + | else if ((am > tx.sellOrder.amount)) | |
30 | + | then throw("Min sell ammount = 60") | |
31 | + | else true | |
32 | 32 | case tx: MassTransferTransaction => | |
33 | 33 | if ((tx.sender == issuer)) | |
34 | 34 | then true | |
35 | 35 | else throw("You cannot send this asset via MassTransferTransaction") | |
36 | 36 | case tx: BurnTransaction => | |
37 | 37 | if ((tx.sender == issuer)) | |
38 | 38 | then true | |
39 | 39 | else throw("You cannot burn this asset") | |
40 | 40 | case tx: ReissueTransaction|SetAssetScriptTransaction => | |
41 | 41 | true | |
42 | 42 | case _ => | |
43 | 43 | false | |
44 | 44 | } |
github/deemru/w8io/169f3d6 66.69 ms ◑