tx · HR93NHXq8GggLLxkfjdmi1GNFcbfsxaSDvtdi2veDSoW
3Mztw7BQPWhCXDxHESrBoX2DKk12yNAGK5E: -0.01400000 Waves
2019.06.28 15:32 [561973] smart account 3Mztw7BQPWhCXDxHESrBoX2DKk12yNAGK5E > SELF 0.00000000 Waves
{
"type": 13,
"id": "HR93NHXq8GggLLxkfjdmi1GNFcbfsxaSDvtdi2veDSoW",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1561725279568,
"version": 1,
"sender": "3Mztw7BQPWhCXDxHESrBoX2DKk12yNAGK5E",
"senderPublicKey": "BG7Fy2R6zh7x23ssfb44qii1ivXk7oLoc7s83p9tt3uB",
"proofs": [
"3JQQC8fUboHYn6EZdWX1Dhjin6ZbSJLjpCmS5MEqSepNypSRHueZxvQzynN3fB4A7eheKn6TaEoWt1WDZFitNkL"
],
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUeHG7ZlQMVWxxVtm5SRcv7/+GuTf1D1AFBAAAAAdhc3NldElkAQAAACBzGpFB+ZZa/ByHLBhs91SzGvP+M4XN16feP65d4McXDgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAEcmF0ZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABmlzc3VlcgIAAAAMZXhjaGFuZ2VSYXRlBAAAAAhyYXRlRGlmZgkAAGUAAAACBQAAAARyYXRlCQAAawAAAAMAAAAAAAX14QAIBQAAAAJleAAAAAVwcmljZQgFAAAAAmV4AAAABmFtb3VudAMDCQAAAAAAAAIICAUAAAACZXgAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyBQAAAARwYWlyCQAAZgAAAAIFAAAACHJhdGVEaWZmAP////////+cBwkAAGYAAAACAAAAAAAAAABkBQAAAAhyYXRlRGlmZgcGVwGyyw==",
"chainId": 84,
"height": 561973,
"spentComplexity": 0
}
View: original | compacted
Prev: F2gj39eNHREmp1ywYh4J8YUj4fAuHsUnuLnu1yeHvMHo
Next: GGmY6jsgg1Ho3D75hXpULa7whZ5MShnyUogyJNqGz748
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let issuer = Address(base58'3issuerAddress') |
---|
4 | | - | let assetId = base58'ThisAsset1d' |
---|
| 3 | + | let issuer = Address(base58'3Mztw7BQPWhCXDxHESrBoX2DKk12yNAGK5E') |
---|
| 4 | + | let assetId = base58'8kKP8hCaoSa3vNN4e2e3bboKfnw3arz7kLhQeCBWauQH' |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case ex: ExchangeTransaction => |
---|
7 | 7 | | let pair = AssetPair(assetId, unit) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let issuer = Address(base58'3issuerAddress') |
---|
4 | | - | let assetId = base58'ThisAsset1d' |
---|
| 3 | + | let issuer = Address(base58'3Mztw7BQPWhCXDxHESrBoX2DKk12yNAGK5E') |
---|
| 4 | + | let assetId = base58'8kKP8hCaoSa3vNN4e2e3bboKfnw3arz7kLhQeCBWauQH' |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case ex: ExchangeTransaction => |
---|
7 | 7 | | let pair = AssetPair(assetId, unit) |
---|
8 | 8 | | let rate = extract(getInteger(issuer, "exchangeRate")) |
---|
9 | 9 | | let rateDiff = (rate - fraction(100000000, ex.price, ex.amount)) |
---|
10 | 10 | | if (if ((ex.buyOrder.assetPair == pair)) |
---|
11 | 11 | | then (rateDiff > -100) |
---|
12 | 12 | | else false) |
---|
13 | 13 | | then (100 > rateDiff) |
---|
14 | 14 | | else false |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | true |
---|
17 | 17 | | } |
---|