tx · 3o18GyLBBFbY8uV4kvCgxR6ixoJDG4y7xdkoXU1cAQab
3N6D7UZCcSAPNyZuZsCH7RNm4hcj5UjS3sf: -1.00000000 Waves
2019.06.26 04:58 [558463] smart asset 3N6D7UZCcSAPNyZuZsCH7RNm4hcj5UjS3sf > SELF 0.00000000 teste1
{
"type": 15,
"id": "3o18GyLBBFbY8uV4kvCgxR6ixoJDG4y7xdkoXU1cAQab",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1561514414808,
"version": 1,
"sender": "3N6D7UZCcSAPNyZuZsCH7RNm4hcj5UjS3sf",
"senderPublicKey": "88G7uaEAqauYWiPX3DFqaVYbbutCc9nH2DNJcvQ6gHeH",
"proofs": [
"2XdZUsX4UrDbb6WBN4zPX7eXdqHbWBtWv8RprkR5NqFMnWbyE89yFeYJYBXxSyB68H23iQJ3HiyFh23LJdbABXuf"
],
"assetId": "G6M1QMtQ8MwtLe38r3Q3v8oS7Jz5ZJjrxxBTveGE73XK",
"script": "base64:AgQAAAAGaXNzdWVkAAAAAABdEtB2BAAAAApiYXNlQW1vdW50AAAAAAAAD0JABAAAAAhtaWxJbkRheQAAAAAABSZcAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwAwkAAGcAAAACCAgFAAAAAmV4AAAACGJ1eU9yZGVyAAAABXByaWNlCQAAZAAAAAIFAAAACmJhc2VBbW91bnQJAABoAAAAAgkAAGkAAAACCQAAZQAAAAIIBQAAAAJleAAAAAl0aW1lc3RhbXAFAAAABmlzc3VlZAUAAAAIbWlsSW5EYXkFAAAACmJhc2VBbW91bnQGCQAAZwAAAAIICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAZAAAAAIJAABkAAAAAgUAAAAKYmFzZUFtb3VudAkAAGgAAAACCQAAaQAAAAIJAABlAAAAAggFAAAAAmV4AAAACXRpbWVzdGFtcAUAAAAGaXNzdWVkBQAAAAhtaWxJbkRheQUAAAAKYmFzZUFtb3VudAAAAAAAAAAAAQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACZXgFAAAAByRtYXRjaDADCQAAZwAAAAIICAUAAAACZXgAAAAIYnV5T3JkZXIAAAAFcHJpY2UIBQAAAAJleAAAAAVwcmljZQYJAABnAAAAAggIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAFcHJpY2UIBQAAAAJleAAAAAVwcmljZQMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBwZ8o61x",
"chainId": 84,
"height": 558463,
"spentComplexity": 0
}
View: original | compacted
Prev: AR58CdRbLhWm8rhiAu3Zpnw8uvZzC3uR24fos5TBctZE
Next: 5s2dj5YxhXPpDeGXfJ3hPhFb12og6hc32BspiQZZwEGE
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let BTCId = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' |
---|
4 | | - | let ETHId = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu' |
---|
5 | | - | let LTCId = base58'HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk' |
---|
6 | | - | let ZECId = base58'BrjUWjndUanm5VsJkbUip8VRYy6LWJePtxya3FNv4TQa' |
---|
7 | | - | let DASHId = base58'B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H' |
---|
8 | | - | let XMRId = base58'5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3' |
---|
9 | | - | let USDId = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' |
---|
10 | | - | let EURId = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' |
---|
11 | 3 | | let issued = 1561514102 |
---|
12 | 4 | | let baseAmount = 1000000 |
---|
13 | 5 | | let milInDay = 86400000 |
---|
|
16 | 8 | | if ((ex.buyOrder.price >= (baseAmount + (((ex.timestamp - issued) / milInDay) * baseAmount)))) |
---|
17 | 9 | | then true |
---|
18 | 10 | | else (ex.sellOrder.price >= ((baseAmount + (((ex.timestamp - issued) / milInDay) * baseAmount)) + 1)) |
---|
19 | | - | case e: ExchangeTransaction => |
---|
20 | | - | if (if (if (if (if (if (if ((e.sellOrder.assetPair.priceAsset == BTCId)) |
---|
21 | | - | then true |
---|
22 | | - | else (e.sellOrder.assetPair.priceAsset == ETHId)) |
---|
23 | | - | then true |
---|
24 | | - | else (e.sellOrder.assetPair.priceAsset == LTCId)) |
---|
25 | | - | then true |
---|
26 | | - | else (e.sellOrder.assetPair.priceAsset == ZECId)) |
---|
27 | | - | then true |
---|
28 | | - | else (e.sellOrder.assetPair.priceAsset == DASHId)) |
---|
29 | | - | then true |
---|
30 | | - | else (e.sellOrder.assetPair.priceAsset == XMRId)) |
---|
31 | | - | then true |
---|
32 | | - | else (e.sellOrder.assetPair.priceAsset == USDId)) |
---|
33 | | - | then true |
---|
34 | | - | else (e.sellOrder.assetPair.priceAsset == EURId) |
---|
35 | 11 | | case ex: ExchangeTransaction => |
---|
36 | 12 | | if ((ex.buyOrder.price >= ex.price)) |
---|
37 | 13 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let BTCId = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' |
---|
4 | | - | let ETHId = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu' |
---|
5 | | - | let LTCId = base58'HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk' |
---|
6 | | - | let ZECId = base58'BrjUWjndUanm5VsJkbUip8VRYy6LWJePtxya3FNv4TQa' |
---|
7 | | - | let DASHId = base58'B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H' |
---|
8 | | - | let XMRId = base58'5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3' |
---|
9 | | - | let USDId = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' |
---|
10 | | - | let EURId = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' |
---|
11 | 3 | | let issued = 1561514102 |
---|
12 | 4 | | let baseAmount = 1000000 |
---|
13 | 5 | | let milInDay = 86400000 |
---|
14 | 6 | | match tx { |
---|
15 | 7 | | case ex: ExchangeTransaction => |
---|
16 | 8 | | if ((ex.buyOrder.price >= (baseAmount + (((ex.timestamp - issued) / milInDay) * baseAmount)))) |
---|
17 | 9 | | then true |
---|
18 | 10 | | else (ex.sellOrder.price >= ((baseAmount + (((ex.timestamp - issued) / milInDay) * baseAmount)) + 1)) |
---|
19 | | - | case e: ExchangeTransaction => |
---|
20 | | - | if (if (if (if (if (if (if ((e.sellOrder.assetPair.priceAsset == BTCId)) |
---|
21 | | - | then true |
---|
22 | | - | else (e.sellOrder.assetPair.priceAsset == ETHId)) |
---|
23 | | - | then true |
---|
24 | | - | else (e.sellOrder.assetPair.priceAsset == LTCId)) |
---|
25 | | - | then true |
---|
26 | | - | else (e.sellOrder.assetPair.priceAsset == ZECId)) |
---|
27 | | - | then true |
---|
28 | | - | else (e.sellOrder.assetPair.priceAsset == DASHId)) |
---|
29 | | - | then true |
---|
30 | | - | else (e.sellOrder.assetPair.priceAsset == XMRId)) |
---|
31 | | - | then true |
---|
32 | | - | else (e.sellOrder.assetPair.priceAsset == USDId)) |
---|
33 | | - | then true |
---|
34 | | - | else (e.sellOrder.assetPair.priceAsset == EURId) |
---|
35 | 11 | | case ex: ExchangeTransaction => |
---|
36 | 12 | | if ((ex.buyOrder.price >= ex.price)) |
---|
37 | 13 | | then true |
---|
38 | 14 | | else (ex.sellOrder.price >= ex.price) |
---|
39 | 15 | | case t: BurnTransaction|MassTransferTransaction|TransferTransaction => |
---|
40 | 16 | | false |
---|
41 | 17 | | case _ => |
---|
42 | 18 | | true |
---|
43 | 19 | | } |
---|