tx · 6GtjYwxa1A6nq8ci6Kz4RAdf2cZeVgnCS5eMZ62ttzhd
3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww: -1.00000000 Waves
2023.01.31 00:49 [2428248] smart asset 3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww > SELF 0.000000 MainAsset
{
"type": 15,
"id": "6GtjYwxa1A6nq8ci6Kz4RAdf2cZeVgnCS5eMZ62ttzhd",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1675115407716,
"version": 2,
"chainId": 84,
"sender": "3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww",
"senderPublicKey": "CJFqGECQ9QCcwYnw3kJCYZp35bzxjVo2akYs1B1C7gbS",
"proofs": [
"Va8nTwKodfWDXZGyqwuQKB49zwyyauQ79MZkPehewBJYd95sqXvNvRq7UMJtxS4GZu9dvzQxwT3oarEa5AT6mnT"
],
"assetId": "G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C",
"script": "base64:BQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAMY29ycmVjdFByaWNlCQAAZwAAAAIIBQAAAAFlAAAABXByaWNlAAAAAAAAFuNgBAAAABFjb3JyZWN0UHJpY2VBc3NldAkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDBQAAAAxjb3JyZWN0UHJpY2UFAAAAEWNvcnJlY3RQcmljZUFzc2V0Bwb+Pknx",
"height": 2428248,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Axoa8ZZXyAsFn742idCewCGtoTaJ3vXJas8Q7Rai5PiG
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let oracle = Address(base58'3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq') |
---|
4 | | - | let assetId = toBase58String(base58'G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C') |
---|
5 | 3 | | match tx { |
---|
6 | 4 | | case t: TransferTransaction => |
---|
7 | 5 | | true |
---|
|
9 | 7 | | false |
---|
10 | 8 | | case e: ExchangeTransaction => |
---|
11 | 9 | | let correctPrice = (e.price >= 1500000) |
---|
12 | | - | let correctPriceAsset = (e.price == getIntegerValue(oracle, assetId)) |
---|
| 10 | + | let correctPriceAsset = !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | 11 | | if (correctPrice) |
---|
14 | | - | then true |
---|
15 | | - | else correctPriceAsset |
---|
| 12 | + | then correctPriceAsset |
---|
| 13 | + | else false |
---|
16 | 14 | | case _ => |
---|
17 | 15 | | true |
---|
18 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let oracle = Address(base58'3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq') |
---|
4 | | - | let assetId = toBase58String(base58'G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C') |
---|
5 | 3 | | match tx { |
---|
6 | 4 | | case t: TransferTransaction => |
---|
7 | 5 | | true |
---|
8 | 6 | | case t: InvokeScriptTransaction|MassTransferTransaction => |
---|
9 | 7 | | false |
---|
10 | 8 | | case e: ExchangeTransaction => |
---|
11 | 9 | | let correctPrice = (e.price >= 1500000) |
---|
12 | | - | let correctPriceAsset = (e.price == getIntegerValue(oracle, assetId)) |
---|
| 10 | + | let correctPriceAsset = !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | 11 | | if (correctPrice) |
---|
14 | | - | then true |
---|
15 | | - | else correctPriceAsset |
---|
| 12 | + | then correctPriceAsset |
---|
| 13 | + | else false |
---|
16 | 14 | | case _ => |
---|
17 | 15 | | true |
---|
18 | 16 | | } |
---|