tx · 6ia7u7MbyfN5QSjfRq4djDwfK4hbj7NCqTm7UdQsr6n7
3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww: -1.00000000 Waves
2023.01.31 00:08 [2428206] smart asset 3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww > SELF 0.000000 MainAsset
{
"type": 15,
"id": "6ia7u7MbyfN5QSjfRq4djDwfK4hbj7NCqTm7UdQsr6n7",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1675112891739,
"version": 2,
"chainId": 84,
"sender": "3N49T9MHfWsZJp62WPv37cg2ToyDrvMzLww",
"senderPublicKey": "CJFqGECQ9QCcwYnw3kJCYZp35bzxjVo2akYs1B1C7gbS",
"proofs": [
"4i8ppDmLD4otfNHp8kTBidPQBj7oy5muB9LgS3xB1Wzq12oVRbudS3Ci54YvsaoAdUGDdeTziQ99XKdbSTJCbSgC"
],
"assetId": "G6GLtJ1wmZhE9uAeRABo4a66kwWFDgx3rcjsG3tFkG3C",
"script": "base64:BQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAMY29ycmVjdFByaWNlCQAAZwAAAAIIBQAAAAFlAAAABXByaWNlAAAAAAAAFuNgBAAAABFjb3JyZWN0UHJpY2VBc3NldAkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQDBQAAAAxjb3JyZWN0UHJpY2UGBQAAABFjb3JyZWN0UHJpY2VBc3NldAaJR7ns",
"height": 2428206,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Fis2PwvjicKxU5W2jeAjpJK3NxVfXc2CSVgdoDcvRHhU
Next: Axoa8ZZXyAsFn742idCewCGtoTaJ3vXJas8Q7Rai5PiG
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 |
---|
8 | 6 | | case t: InvokeScriptTransaction|MassTransferTransaction => |
---|
9 | 7 | | false |
---|
10 | 8 | | case e: ExchangeTransaction => |
---|
11 | | - | let correctPrice = (e.price == getIntegerValue(oracle, assetId)) |
---|
12 | | - | let correctPriceAsset = (e.price > 1500000) |
---|
| 9 | + | let correctPrice = (e.price >= 1500000) |
---|
| 10 | + | let correctPriceAsset = !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | 11 | | if (correctPrice) |
---|
14 | 12 | | then true |
---|
15 | 13 | | else correctPriceAsset |
---|
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 | | - | let correctPrice = (e.price == getIntegerValue(oracle, assetId)) |
---|
12 | | - | let correctPriceAsset = (e.price > 1500000) |
---|
| 9 | + | let correctPrice = (e.price >= 1500000) |
---|
| 10 | + | let correctPriceAsset = !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
13 | 11 | | if (correctPrice) |
---|
14 | 12 | | then true |
---|
15 | 13 | | else correctPriceAsset |
---|
16 | 14 | | case _ => |
---|
17 | 15 | | true |
---|
18 | 16 | | } |
---|