tx · ER4jAMoW8KPakVW6pR8vLnNtGM8r3mrDNJNS6Yi4R6KL
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.14 18:13 [630907] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.00000000 ALAL Smart
{
"type": 15,
"id": "ER4jAMoW8KPakVW6pR8vLnNtGM8r3mrDNJNS6Yi4R6KL",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1565795673017,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"5swawSdMhaMsM4zSr5DdK3sgYdtW12ftMBKLhnGdi1W44kLebAk5u3hrAnzF1TTV865pn1Vs1inB9VWe6M8ZD6xW"
],
"assetId": "F1x9pu3jnfUcbDTDnfAqkdr7586HptLrxuGxX8q9hjn2",
"script": "base64:AwQAAAAGQUxBTElkAQAAACCGXEpN2XAJtec45JhRZSYsl4p3hhjsZjRxpFca1iPsKwQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABHJhdGUJAABoAAAAAgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQgJAQAAAAV2YWx1ZQAAAAEJAAPsAAAAAQUAAAAGQUxBTElkAAAACHF1YW50aXR5AAAAAAAF9eEABAAAAAhyYXRlRGlmZgkAAGUAAAACBQAAAARyYXRlCQAAawAAAAMAAAAAAAX14QAIBQAAAAFlAAAABXByaWNlCAUAAAABZQAAAAZhbW91bnQDAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAGQUxBTElkCQAAZgAAAAIFAAAACHJhdGVEaWZmAP////////+cBwkAAGYAAAACAAAAAAAAAABkBQAAAAhyYXRlRGlmZgcGYBtrXw==",
"chainId": 84,
"height": 630907,
"spentComplexity": 0
}
View: original | compacted
Prev: BcKAhjp2rLHkaBAoGpzAgwot6numfLj4QJZL8Uzqb7Ek
Next: GseompN4x8QDx6Qh2qrKFXSx8YprkFXidqQzQFegp3rj
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 rate = ((value(assetInfo(ALALId)).quantity / this.quantity) * 100000000000) |
---|
| 11 | + | let rate = ((this.quantity / value(assetInfo(ALALId)).quantity) * 100000000) |
---|
12 | 12 | | let rateDiff = (rate - fraction(100000000, e.price, e.amount)) |
---|
13 | 13 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
14 | 14 | | then (rateDiff > -100) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ALALId = base58'A3VFhf86g7ZM4k1kuxnZUSbqUYPcXbsSAhgZgdvanP2a' |
---|
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 rate = ((value(assetInfo(ALALId)).quantity / this.quantity) * 100000000000) |
---|
| 11 | + | let rate = ((this.quantity / value(assetInfo(ALALId)).quantity) * 100000000) |
---|
12 | 12 | | let rateDiff = (rate - fraction(100000000, e.price, e.amount)) |
---|
13 | 13 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
14 | 14 | | then (rateDiff > -100) |
---|
15 | 15 | | else false) |
---|
16 | 16 | | then (100 > rateDiff) |
---|
17 | 17 | | else false |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | true |
---|
20 | 20 | | } |
---|