tx · EXb4QajNtDP5Kgu9QWecBqhbwLEmzuw5EyV1yCehgDYt
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.16 18:51 [633835] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.0000000 smarty
{
"type": 15,
"id": "EXb4QajNtDP5Kgu9QWecBqhbwLEmzuw5EyV1yCehgDYt",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1565970667952,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"51ZXxYF1ktwMDFA536bzmmFn4GDQ9coD567tfL9498o5SDiYXVdtHDAekzvBHgrra6kDHVBdiFwgmwbZm63V4xxP"
],
"assetId": "9CB5r7EGCFwURNxDbT7oTGrEwWp9R5yAacD9sm5V7ryS",
"script": "base64:AwQAAAAGQUxBTElkAQAAACALeoOyaQfKiULr59otvDF3rQF3eK5MNPl/P2eTG9jHAQQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAB3JhdGVNaW4JAABoAAAAAgkAAGkAAAACCAkBAAAAB2V4dHJhY3QAAAABCQAD7AAAAAEFAAAABkFMQUxJZAAAAAhxdWFudGl0eQgFAAAABHRoaXMAAAAIcXVhbnRpdHkAAAAAADuaygADAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAGQUxBTElkBgkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAABkFMQUxJZAkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAHcmF0ZU1pbgcGIzDQ/w==",
"chainId": 84,
"height": 633835,
"spentComplexity": 0
}
View: original | compacted
Prev: G8F5Jthpk6JAGZo8pPRW4HRBMN2duvwJ5XtVhepL3M3u
Next: 4qneyr6dFnmC4iyj7xziTZ5c4TDvMW2Pghgh3kbet4fM
Diff:
Old | New | | Differences |
---|
8 | 8 | | then throw("You can burn only 1 percent (or more) of current total supply") |
---|
9 | 9 | | else true |
---|
10 | 10 | | case e: ExchangeTransaction => |
---|
| 11 | + | let rateMin = ((extract(assetInfo(ALALId)).quantity / this.quantity) * 1000000000) |
---|
11 | 12 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
12 | 13 | | then true |
---|
13 | 14 | | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
14 | | - | then (e.price == 1000000000) |
---|
| 15 | + | then (e.price >= rateMin) |
---|
15 | 16 | | else false |
---|
16 | 17 | | case _ => |
---|
17 | 18 | | true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ALALId = base58'moqYu3B2z5HGBMcEhKmkXkK8YseSkEGnWqStTya1Tda' |
---|
4 | 4 | | let minimalAmountToBurn = (this.quantity / 100) |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case burn: BurnTransaction => |
---|
7 | 7 | | if ((minimalAmountToBurn > burn.quantity)) |
---|
8 | 8 | | then throw("You can burn only 1 percent (or more) of current total supply") |
---|
9 | 9 | | else true |
---|
10 | 10 | | case e: ExchangeTransaction => |
---|
| 11 | + | let rateMin = ((extract(assetInfo(ALALId)).quantity / this.quantity) * 1000000000) |
---|
11 | 12 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
12 | 13 | | then true |
---|
13 | 14 | | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
14 | | - | then (e.price == 1000000000) |
---|
| 15 | + | then (e.price >= rateMin) |
---|
15 | 16 | | else false |
---|
16 | 17 | | case _ => |
---|
17 | 18 | | true |
---|
18 | 19 | | } |
---|