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