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