tx · HrAnTsLAdcrNkh8yKUwXBbeTQqXerTNieruCfq7EtEMv 3N3nSBXtuSiMf6yUZ2zwnUV1ioq6SW9AL1j: -1.00000000 Waves 2019.12.31 04:41 [832633] smart asset 3N3nSBXtuSiMf6yUZ2zwnUV1ioq6SW9AL1j > SELF 0.00 PAR7PAY
{ "type": 15, "id": "HrAnTsLAdcrNkh8yKUwXBbeTQqXerTNieruCfq7EtEMv", "fee": 100000000, "feeAssetId": null, "timestamp": 1577756542793, "version": 1, "sender": "3N3nSBXtuSiMf6yUZ2zwnUV1ioq6SW9AL1j", "senderPublicKey": "8FuCXmbLgQcVjvKuRkgXVY7yYiHFVyLqYPoPjBkcd6Bm", "proofs": [ "5JLs3jTmmHGnkcCSUacKEnzCz4pqZo4PQm7ZPs66mdDKsxHeP3J9JX2qZge4C3pGJ5fpFEKHFE9kKJzsL64PvBSk" ], "assetId": "BCqo4hvDBB2dzmidJQKkVtQtkgEQVVwMy1jjV4R4tNB4", "script": "base64:AwQAAAAJUEFSN1ByaWNlAAAAAAJUC+QABAAAAApXQVZFU1ByaWNlAAAAAACy0F4ABAAAAAZQQVI3SUQBAAAAIM5YQP2Y4rTFk3fjHMVSaCtBnCyxqxHVfGnKN+eS6UeMBAAAAAZVU0ROSUQBAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3BAAAAAtHT0xGQk9BUkRJRAEAAAAgn6gwdZK4Ea8VgdTEaOaR289kXrGFPklbD+1p/RVRatsEAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVJgfd+F6QHPolWQoYXC6ct+pW37N+V2RngQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABHBhaXIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyBAAAAA50cmFkZWRGb3JXYXZl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JhbnNmZXIgZXhjZXB0IGJ5IHRoZSBsaXN0IHBlcnNvbgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAFzAAAABnNlbmRlcgUAAAAGaXNzdWVyBgcDBwYJAAACAAAAAQIAAAAtSXQgc2VlbXMgdGhhdCB5b3UgZG8gbm90IGFsbG93IHRoaXMgb3BlcmF0aW9udjCc4Q==", "chainId": 84, "height": 832633, "spentComplexity": 0 } View: original | compacted Prev: 13DmWEoPdk5XmJb17kGcQ6KLGkpKZTLpVigA6EWjTCk2 Next: 23Z3XkiCkU4mZrY49iGfSBLfaAGoZguekvabcL92pDp9 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let PAR7Price = 10000000000 | |
4 | + | let WAVESPrice = 3000000000 | |
5 | + | let PAR7ID = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm' | |
6 | + | let USDNID = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' | |
7 | + | let GOLFBOARDID = base58'BkEa9DccGw49GS24gVfdRHhf9rUNCbZhQpRTQYFVa89g' | |
8 | + | let issuer = Address(base58'3N3nSBXtuSiMf6yUZ2zwnUV1ioq6SW9AL1j') | |
3 | 9 | match tx { | |
10 | + | case e: ExchangeTransaction => | |
11 | + | let pair = e.sellOrder.assetPair | |
12 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) | |
13 | + | then true | |
14 | + | else !(isDefined(pair.priceAsset)) | |
15 | + | if (if (tradedForWaves) | |
16 | + | then (e.price >= WAVESPrice) | |
17 | + | else false) | |
18 | + | then if (true) | |
19 | + | then true | |
20 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
21 | + | else if (if ((e.buyOrder.assetPair.priceAsset == PAR7ID)) | |
22 | + | then (e.price == PAR7Price) | |
23 | + | else false) | |
24 | + | then if (true) | |
25 | + | then true | |
26 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
27 | + | else if ((e.buyOrder.assetPair.priceAsset == USDNID)) | |
28 | + | then if (true) | |
29 | + | then true | |
30 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
31 | + | else if (false) | |
32 | + | then true | |
33 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
34 | + | case m: MassTransferTransaction => | |
35 | + | if ((m.sender == issuer)) | |
36 | + | then true | |
37 | + | else if ((assetBalance(m.sender, GOLFBOARDID) >= 10)) | |
38 | + | then true | |
39 | + | else if (false) | |
40 | + | then true | |
41 | + | else throw("Not possible to send mass transfer except by the list person") | |
42 | + | case t: TransferTransaction => | |
43 | + | true | |
4 | 44 | case s: SetAssetScriptTransaction => | |
5 | - | true | |
45 | + | if ((s.sender == issuer)) | |
46 | + | then true | |
47 | + | else false | |
6 | 48 | case _ => | |
7 | 49 | if (false) | |
8 | 50 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let PAR7Price = 10000000000 | |
4 | + | let WAVESPrice = 3000000000 | |
5 | + | let PAR7ID = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm' | |
6 | + | let USDNID = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' | |
7 | + | let GOLFBOARDID = base58'BkEa9DccGw49GS24gVfdRHhf9rUNCbZhQpRTQYFVa89g' | |
8 | + | let issuer = Address(base58'3N3nSBXtuSiMf6yUZ2zwnUV1ioq6SW9AL1j') | |
3 | 9 | match tx { | |
10 | + | case e: ExchangeTransaction => | |
11 | + | let pair = e.sellOrder.assetPair | |
12 | + | let tradedForWaves = if (!(isDefined(pair.amountAsset))) | |
13 | + | then true | |
14 | + | else !(isDefined(pair.priceAsset)) | |
15 | + | if (if (tradedForWaves) | |
16 | + | then (e.price >= WAVESPrice) | |
17 | + | else false) | |
18 | + | then if (true) | |
19 | + | then true | |
20 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
21 | + | else if (if ((e.buyOrder.assetPair.priceAsset == PAR7ID)) | |
22 | + | then (e.price == PAR7Price) | |
23 | + | else false) | |
24 | + | then if (true) | |
25 | + | then true | |
26 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
27 | + | else if ((e.buyOrder.assetPair.priceAsset == USDNID)) | |
28 | + | then if (true) | |
29 | + | then true | |
30 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
31 | + | else if (false) | |
32 | + | then true | |
33 | + | else throw("USD-N & Over 0.00003WAVES & & Fix 100PAR7 only") | |
34 | + | case m: MassTransferTransaction => | |
35 | + | if ((m.sender == issuer)) | |
36 | + | then true | |
37 | + | else if ((assetBalance(m.sender, GOLFBOARDID) >= 10)) | |
38 | + | then true | |
39 | + | else if (false) | |
40 | + | then true | |
41 | + | else throw("Not possible to send mass transfer except by the list person") | |
42 | + | case t: TransferTransaction => | |
43 | + | true | |
4 | 44 | case s: SetAssetScriptTransaction => | |
5 | - | true | |
45 | + | if ((s.sender == issuer)) | |
46 | + | then true | |
47 | + | else false | |
6 | 48 | case _ => | |
7 | 49 | if (false) | |
8 | 50 | then true | |
9 | 51 | else throw("It seems that you do not allow this operation") | |
10 | 52 | } |
github/deemru/w8io/026f985 29.96 ms ◑