tx · BVEqJkHUyFRL6wbVVJ8gFxnq6HHoXEdXacoqvxHV8xzX

3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA:  -0.01000000 Waves

2020.05.29 04:19 [1018995] smart account 3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA > SELF 0.00000000 Waves

{ "type": 13, "id": "BVEqJkHUyFRL6wbVVJ8gFxnq6HHoXEdXacoqvxHV8xzX", "fee": 1000000, "feeAssetId": null, "timestamp": 1590714982799, "version": 1, "sender": "3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA", "senderPublicKey": "7phy1Un2TLCqTJNLhqu43csHW3ZSs6aAUJaYMJgLrJPy", "proofs": [ "41XHqHiXh4pWjc2JEkZfouShE4mReEXmNzZ39XLqRVrDzGcgfjkfsBVGzYpyFiwNbukqRmUmvAa7U2m9rwk9QAHg" ], "script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUemNiciQj5eW8OhkLQWXo3nyXsntlDNCZBAAAAAdhc3NldElkAQAAACD/MF9ptHgS9qWJhVbabXJJmhFYnBjrkbCVAXZKgLZ1LwQAAAADZXNnAAAAAAAAAAAfBAAAAAVwcmljZQAAAAAkFrhOAAQAAAAGYXNzZXRkAQAAACD/MF9ptHgS9qWJhVbabXJJmhFYnBjrkbCVAXZKgLZ1LwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAEcmF0ZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABmlzc3VlcgIAAAAMZXhjaGFuZ2VSYXRlBAAAAAhyYXRlRGlmZgkAAGUAAAACBQAAAARyYXRlCQAAawAAAAMAAAAAAAX14QAIBQAAAAJleAAAAAVwcmljZQgFAAAAAmV4AAAABmFtb3VudAMDCQAAAAAAAAIICAUAAAACZXgAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBQAAAARwYWlyCQAAZgAAAAIFAAAACHJhdGVEaWZmAP////////+cBwkAAGYAAAACAAAAAAAAAABkBQAAAAhyYXRlRGlmZgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgYG0ujGeg==", "chainId": 84, "height": 1018995, "spentComplexity": 0 } View: original | compacted Prev: none Next: 5tF27H89CBTuWLQooeig6NfSkxkTXPfiTzxWEevWv8dA Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 2 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let issuer = Address(base58'3N15DGgcLXSctAzxz8fvXSoW3W6up4VmnPA')
4+let assetId = base58'JB9k9oaBGtpnTWTey6HU6d4uipiDPpGNGokQHKYFMULv'
5+let esg = 31
6+let price = 155000000000
7+let assetd = base58'JB9k9oaBGtpnTWTey6HU6d4uipiDPpGNGokQHKYFMULv'
8+match tx {
9+ case ex: ExchangeTransaction =>
10+ let pair = AssetPair(assetId, unit)
11+ let rate = extract(getInteger(issuer, "exchangeRate"))
12+ let rateDiff = (rate - fraction(100000000, ex.price, ex.amount))
13+ if (if ((ex.buyOrder.assetPair == pair))
14+ then (rateDiff > -100)
15+ else false)
16+ then (100 > rateDiff)
17+ else false
18+ case b: BurnTransaction =>
19+ false
20+ case _: MassTransferTransaction|TransferTransaction =>
21+ true
22+ case _ =>
23+ true
24+}

github/deemru/w8io/026f985 
96.08 ms