tx · Fis2PwvjicKxU5W2jeAjpJK3NxVfXc2CSVgdoDcvRHhU
3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww: -1.00000000 Waves
2023.01.30 23:56 [2428196] smart asset 3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww > SELF 0.000000 MainAsset
{
"type": 15,
"id": "Fis2PwvjicKxU5W2jeAjpJK3NxVfXc2CSVgdoDcvRHhU",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1675112259503,
"version": 2,
"chainId": 84,
"sender": "3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww",
"senderPublicKey": "CJFqGECQ9QCcwYnw3kJCYZp35bzxjVo2akYs1B1C7gbS",
"proofs": [
"5P7HRG25HgBgfGsUcbQKy6o5aJs1vPw3CfefU4aoTJYFqPB8xtD7rA6aedHX9ERNdAF4d9yhbu4A4rLvYhYqDqa8"
],
"assetId": "G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C",
"script": "base64:BQQAAAAGb3JhY2xlCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU9xIy1Xhizmi8e7bCFGtkUZHvGPwzLF4uBAAAAAdhc3NldElkCQACWAAAAAEBAAAAIOA4jl8UgSEF8THo7qJLbeLX0iNn292leajB0R57xwQTBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAxjb3JyZWN0UHJpY2UJAAAAAAAAAggFAAAAAWUAAAAFcHJpY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABm9yYWNsZQUAAAAHYXNzZXRJZAQAAAARY29ycmVjdFByaWNlQXNzZXQJAABmAAAAAggFAAAAAWUAAAAFcHJpY2UAAAAAAAAW42ADBQAAAAxjb3JyZWN0UHJpY2UGBQAAABFjb3JyZWN0UHJpY2VBc3NldAZBJ0/y",
"height": 2428196,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3xqeu6WZAf5qAyhanoQ7s27gAhCRH9LQ6Hm4Hf7hK7fp
Next: 6ia7u7MbyfN5QSjfRq4djDwfK4hbj7NCqTm7UdQsr6n7
Diff:
Old | New | | Differences |
---|
9 | 9 | | false |
---|
10 | 10 | | case e: ExchangeTransaction => |
---|
11 | 11 | | let correctPrice = (e.price == getIntegerValue(oracle, assetId)) |
---|
12 | | - | let correctPriceAsset = (e.price >= 1400000) |
---|
| 12 | + | let correctPriceAsset = (e.price > 1500000) |
---|
13 | 13 | | if (correctPrice) |
---|
14 | | - | then correctPriceAsset |
---|
15 | | - | else false |
---|
| 14 | + | then true |
---|
| 15 | + | else correctPriceAsset |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | true |
---|
18 | 18 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let oracle = Address(base58'3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq') |
---|
4 | 4 | | let assetId = toBase58String(base58'G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C') |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case t: TransferTransaction => |
---|
7 | 7 | | true |
---|
8 | 8 | | case t: InvokeScriptTransaction|MassTransferTransaction => |
---|
9 | 9 | | false |
---|
10 | 10 | | case e: ExchangeTransaction => |
---|
11 | 11 | | let correctPrice = (e.price == getIntegerValue(oracle, assetId)) |
---|
12 | | - | let correctPriceAsset = (e.price >= 1400000) |
---|
| 12 | + | let correctPriceAsset = (e.price > 1500000) |
---|
13 | 13 | | if (correctPrice) |
---|
14 | | - | then correctPriceAsset |
---|
15 | | - | else false |
---|
| 14 | + | then true |
---|
| 15 | + | else correctPriceAsset |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | true |
---|
18 | 18 | | } |
---|