tx · 4bsmm5Ywt3QUj8VJkHkdqHtZJVs88Y2VzqCcg2pHdfHH
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.16 18:31 [633815] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.0000000 smarty
{
"type": 15,
"id": "4bsmm5Ywt3QUj8VJkHkdqHtZJVs88Y2VzqCcg2pHdfHH",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1565969492599,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"2sFCQFpfxm58je7WNnnrmbmuxXebqkn5SkqX7DFXFsZdZvqATnvUPTcVAkjoiyRwvs87tsKQfjehPGSEP7pSgRK9"
],
"assetId": "9CB5r7EGCFwURNxDbT7oTGrEwWp9R5yAacD9sm5V7ryS",
"script": "base64:AwQAAAAGQUxBTElkAQAAACALeoOyaQfKiULr59otvDF3rQF3eK5MNPl/P2eTG9jHAQQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAB3JhdGVNaW4JAABlAAAAAggJAQAAAAdleHRyYWN0AAAAAQkAA+wAAAABBQAAAAZBTEFMSWQAAAAIcXVhbnRpdHkJAABoAAAAAggFAAAAAWUAAAAFcHJpY2UIBQAAAAR0aGlzAAAACHF1YW50aXR5AwMJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQFAAAABkFMQUxJZAYJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAZBTEFMSWQJAAAAAAAAAgUAAAAHcmF0ZU1pbgAAAAAAAAAAAAcGjx+NyA==",
"chainId": 84,
"height": 633815,
"spentComplexity": 0
}
View: original | compacted
Prev: 7ekiaoLMteCp86Dxwhtxqw9rNySQLAdEaaB4w94DfXPK
Next: B17bVLnwW8Vbt4x16cNz37b7VC1X4ts2Q383fUA1TRaG
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 = ((value(assetInfo(ALALId)).quantity / 10000000) - ((e.price * this.quantity) / 10000000)) |
---|
| 11 | + | let rateMin = (extract(assetInfo(ALALId)).quantity - (e.price * this.quantity)) |
---|
12 | 12 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
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 = ((value(assetInfo(ALALId)).quantity / 10000000) - ((e.price * this.quantity) / 10000000)) |
---|
| 11 | + | let rateMin = (extract(assetInfo(ALALId)).quantity - (e.price * this.quantity)) |
---|
12 | 12 | | if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
15 | 15 | | then (rateMin == 0) |
---|
16 | 16 | | else false |
---|
17 | 17 | | case _ => |
---|
18 | 18 | | true |
---|
19 | 19 | | } |
---|