tx · 2MHQ9QtDzZR2ACEBMvL7bW9tNzdQSxkFyEQWPZr4WjSw
3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM: -1.00000000 Waves
2019.03.23 16:03 [549020] smart asset 3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM > SELF 0.00000000 Token
{
"type": 15,
"id": "2MHQ9QtDzZR2ACEBMvL7bW9tNzdQSxkFyEQWPZr4WjSw",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553346233211,
"version": 1,
"sender": "3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM",
"senderPublicKey": "3u3aeyi8aVT6ouJPSgpXyNzPcKAfm4eggtkD1PRJKFpi",
"proofs": [
"32fAXBD7RriuWVsNTx4Xi28zVzfwBeZy6fEb1NAD4d6aso7AXxSnJ4wM9anjhwYPdVi3MsdrAqpAdZK9pqvt3mjq"
],
"assetId": "5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU40mqx+iKFqCBRTN5WZYD5tUciBjTsOJ0BAAAAA5hZG1pblB1YmxpY0tleQEAAAAaAVTjSarH6IoWoIFFM3lZlgPm1RyIGNOw4nQEAAAAB2Fzc2V0SWQBAAAAIELsEaA78D7Buoy0pE9NLlaqqt8O8VcwTwOr0Mt2PeiJBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACZXgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAAZwZXJtaXQJAAH0AAAAAwgIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACZXgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAUAAAAOYWRtaW5QdWJsaWNLZXkEAAAABHBhaXIJAQAAAAlBc3NldFBhaXIAAAACBQAAAAdhc3NldElkBQAAAAR1bml0BAAAAAVwcmljZQkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABmlzc3VlcgIAAAAFcHJpY2UDBQAAAARzZWxsAwkBAAAAASEAAAABBQAAAAZwZXJtaXQDCQAAZgAAAAIIBQAAAAJleAAAAAVwcmljZQUAAAAFcHJpY2UGCQAAAgAAAAEJAAEsAAAAAgIAAAAiU2FsZXMgb3JkZXJzIG11c3QgYmUgZ3JlYXRlciB0aGFuIAkAAaQAAAABBQAAAAVwcmljZQYGBrD1aCk=",
"chainId": 84,
"height": 549020,
"spentComplexity": 0
}
View: original | compacted
Prev: 6NKtoUwyM6ndiNHot35KmfwfeouZysWSZ7YRsygwd3Vn
Next: 8K9d36RoRXdQDvJVy5nLCrHV6HLNyNkaQgoUbjNMb6Jy
Diff:
Old | New | | Differences |
---|
11 | 11 | | let price = extract(getInteger(issuer, "price")) |
---|
12 | 12 | | if (sell) |
---|
13 | 13 | | then if (!(permit)) |
---|
14 | | - | then if ((ex.price >= price)) |
---|
| 14 | + | then if ((ex.price > price)) |
---|
15 | 15 | | then true |
---|
16 | | - | else throw(("Your sales order must be greater than " + toString(price))) |
---|
| 16 | + | else throw(("Sales orders must be greater than " + toString(price))) |
---|
17 | 17 | | else true |
---|
18 | 18 | | else true |
---|
19 | 19 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM') |
---|
4 | 4 | | let adminPublicKey = base58'3NAdsQwsE66yqqKHBviC4bYqNfc72PTo2oM' |
---|
5 | 5 | | let assetId = base58'5WEgwFcP4VXp4Gh34XgdZrbREHZmWVPRWaQ4eAbRj68p' |
---|
6 | 6 | | match tx { |
---|
7 | 7 | | case ex: ExchangeTransaction => |
---|
8 | 8 | | let sell = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], ex.sellOrder.senderPublicKey) |
---|
9 | 9 | | let permit = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], adminPublicKey) |
---|
10 | 10 | | let pair = AssetPair(assetId, unit) |
---|
11 | 11 | | let price = extract(getInteger(issuer, "price")) |
---|
12 | 12 | | if (sell) |
---|
13 | 13 | | then if (!(permit)) |
---|
14 | | - | then if ((ex.price >= price)) |
---|
| 14 | + | then if ((ex.price > price)) |
---|
15 | 15 | | then true |
---|
16 | | - | else throw(("Your sales order must be greater than " + toString(price))) |
---|
| 16 | + | else throw(("Sales orders must be greater than " + toString(price))) |
---|
17 | 17 | | else true |
---|
18 | 18 | | else true |
---|
19 | 19 | | case _ => |
---|
20 | 20 | | true |
---|
21 | 21 | | } |
---|