tx · A1KSmAuwsJFH5fEKrLa4P5atDayQLENEFN3hjF6GEkW3 3N2aoernEfDhEG22hTedZGC4nNsqZSjVJ9A: -1.00000000 Waves 2020.05.19 18:33 [1005303] smart asset 3N2aoernEfDhEG22hTedZGC4nNsqZSjVJ9A > SELF 0.00000000 AaInvest
{ "type": 15, "id": "A1KSmAuwsJFH5fEKrLa4P5atDayQLENEFN3hjF6GEkW3", "fee": 100000000, "feeAssetId": null, "timestamp": 1589902412243, "version": 1, "sender": "3N2aoernEfDhEG22hTedZGC4nNsqZSjVJ9A", "senderPublicKey": "XEq35ULBodv18SNkqgUiHzfZN3FuJsGLmGBnR79Yi5P", "proofs": [ "3zajTr666rk8KzgVJcb8uJzRM3djLXw1Z3Fe2r2EZiu6mGzMRawDEJQ5P9hhHij5tCDGaCbZqhSBxgF6TU3xS37F" ], "assetId": "Ac99zMcpmE7W78ygoc4j9iG1rC1cYPn6HNQeGETeBeZb", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNOMmFvZXJuRWZEaEVHMjJoVGVkWkdDNG5Oc3FaU2pWSjlBBAAAAAdhZG1pblBLAQAAACAHvw9TxPXHFYtRiyF8TIocSPEO29bBQZK1IClbV0enWgQAAAAKc2VsbEFtb3VudAkAAGgAAAACAAAAAAAAAAAKAAAAAAAF9eEABAAAAAlzZWxsUHJpY2UAAAAAAAAtxsAEAAAACGJ1eVByaWNlAAAAAAAAHoSABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAkAAAAAAAACCAUAAAACdHgAAAAGc2VuZGVyBQAAAAtkQXBwQWRkcmVzcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAkAAAAAAAACCA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AAlzZWxsT3JkZXIAAAAFcHJpY2UJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAIS09IFB1cmNoYXNlIHByaWNlIG11c3QgYmUgaGlnaGVyIAkAAaQAAAABBQAAAAhidXlQcmljZQIAAAAMIFdhdmVsZXRzID0tAgAAAD8gLT0g0KbQtdC90LAg0L/QvtC60YPQv9C60Lgg0LTQvtC70LbQvdCwINCx0YvRgtGMINCx0L7Qu9GM0YjQtSAJAAGkAAAAAQUAAAAIYnV5UHJpY2UCAAAADCBXYXZlbGV0cyA9LQYJAAACAAAAAQIAAAAWc29tZXRoaW5nIGJhZCBoYXBwZW5lZAft1vzi", "chainId": 84, "height": 1005303, "spentComplexity": 0 } View: original | compacted Prev: 4g1mymF4zXSL6Gt2nC8saoYsEdTUGLHccaUA34eNuFNM Next: C2KYJoQABaDZSNpfRhx2mS24YrFwkCsRKPugmRzvC49e Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | let dAppAddress = addressFromString("3N2aoernEfDhEG22hTedZGC4nNsqZSjVJ9A") | |
4 | 4 | let adminPK = base58'XEq35ULBodv18SNkqgUiHzfZN3FuJsGLmGBnR79Yi5P' | |
5 | 5 | let sellAmount = (10 * 100000000) | |
6 | - | let sellPrice = | |
7 | - | let buyPrice = | |
6 | + | let sellPrice = 3000000 | |
7 | + | let buyPrice = 2000000 | |
8 | 8 | match tx { | |
9 | 9 | case tx: BurnTransaction => | |
10 | 10 | (tx.sender == dAppAddress) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let dAppAddress = addressFromString("3N2aoernEfDhEG22hTedZGC4nNsqZSjVJ9A") | |
4 | 4 | let adminPK = base58'XEq35ULBodv18SNkqgUiHzfZN3FuJsGLmGBnR79Yi5P' | |
5 | 5 | let sellAmount = (10 * 100000000) | |
6 | - | let sellPrice = | |
7 | - | let buyPrice = | |
6 | + | let sellPrice = 3000000 | |
7 | + | let buyPrice = 2000000 | |
8 | 8 | match tx { | |
9 | 9 | case tx: BurnTransaction => | |
10 | 10 | (tx.sender == dAppAddress) | |
11 | 11 | case tx: ReissueTransaction => | |
12 | 12 | (tx.sender == dAppAddress) | |
13 | 13 | case tx: SetAssetScriptTransaction => | |
14 | 14 | (tx.sender == dAppAddress) | |
15 | 15 | case tx: MassTransferTransaction => | |
16 | 16 | (tx.sender == dAppAddress) | |
17 | 17 | case tx: TransferTransaction => | |
18 | 18 | (tx.sender == dAppAddress) | |
19 | 19 | case e: ExchangeTransaction => | |
20 | 20 | let sender = e.sellOrder.sender | |
21 | 21 | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
22 | 22 | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
23 | 23 | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) | |
24 | 24 | if (admin) | |
25 | 25 | then true | |
26 | 26 | else if (isDefined(e.sellOrder.assetPair.priceAsset)) | |
27 | 27 | then throw("Only waves accepted") | |
28 | 28 | else if (sell) | |
29 | 29 | then if ((sellAmount > e.sellOrder.amount)) | |
30 | 30 | then throw(((((("-= Sales must be greater than or equal to " + toString(sellAmount)) + " CloMinTok =-") + " -= Объем продажи должен быть больше или равно ") + toString(sellAmount)) + " CloMinTok =-")) | |
31 | 31 | else if ((sellPrice != e.sellOrder.price)) | |
32 | 32 | then throw(((((("-= Selling price should be higher " + toString(sellPrice)) + " Wavelets =-") + " -= Цена продажи должна быть больше ") + toString(sellPrice)) + " Wavelets =-")) | |
33 | 33 | else true | |
34 | 34 | else if (buy) | |
35 | 35 | then if ((buyPrice != e.sellOrder.price)) | |
36 | 36 | then throw(((((("-= Purchase price must be higher " + toString(buyPrice)) + " Wavelets =-") + " -= Цена покупки должна быть больше ") + toString(buyPrice)) + " Wavelets =-")) | |
37 | 37 | else true | |
38 | 38 | else throw("something bad happened") | |
39 | 39 | case _ => | |
40 | 40 | false | |
41 | 41 | } |
github/deemru/w8io/169f3d6 53.64 ms ◑