tx · qHZSt28pY4nDVN8XyvWGMtzU7WWhLGuxvJtHqkEh6UW
3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz: -1.00000000 Waves
2019.09.11 00:50 [670584] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 DualB
{
"type": 15,
"id": "qHZSt28pY4nDVN8XyvWGMtzU7WWhLGuxvJtHqkEh6UW",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1568152231694,
"version": 1,
"sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz",
"senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn",
"proofs": [
"31pC8yR7Xm5EEh8aE7KtTysen9MGUdugpvMC7VGk3PYDVmGsSMAHAJZWdL6NDsbw2DgcqRVFVAwTViCsMPS76M7R"
],
"assetId": "xQ1Tz4qgbFNaPuhrBbzL3ZxaDCTuoFuAJwxYsK52FSV",
"script": "base64:AgQAAAAFQmR1YWwBAAAAIA4w9bJLywoxfeXMUuEAY70K/uOYq+f5nZswxuoTVG5mBAAAAAVBZHVhbAEAAAAg9QNs9GvWrc67pxSr4BUJbIJG7uAMgeEktp4NxADgEHwEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAADYnV5CQAB9AAAAAMICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAnR4AAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQMJAABnAAAAAgkAA+sAAAACCAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAZzZW5kZXIFAAAABUFkdWFsCQAAaAAAAAIJAABpAAAAAgkAA+sAAAACCAgFAAAAAn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rhAxxXtXt661idNWPPxWk35wVEahej8p
Next: HVNxWqQQkH3HcKKCpKJeruc58JpH5NE7sqerjDfkNjqw
Diff:
Old | New | | Differences |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case tx: ExchangeTransaction => |
---|
7 | 7 | | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) |
---|
8 | | - | if ((((assetBalance(tx.sellOrder.sender, Adual) / 100) * 70) >= assetBalance(tx.sellOrder.sender, Bdual))) |
---|
| 8 | + | if ((assetBalance(tx.sellOrder.sender, Adual) >= ((assetBalance(tx.sellOrder.sender, Bdual) / 100) * 70))) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else if (buy) |
---|
11 | 11 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let Bdual = base58'xQ1Tz4qgbFNaPuhrBbzL3ZxaDCTuoFuAJwxYsK52FSV' |
---|
4 | 4 | | let Adual = base58'HVRv6zPUYH7FKeRPAtDtQVAUdrJZdd3C4Qouz5ra55zs' |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case tx: ExchangeTransaction => |
---|
7 | 7 | | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) |
---|
8 | | - | if ((((assetBalance(tx.sellOrder.sender, Adual) / 100) * 70) >= assetBalance(tx.sellOrder.sender, Bdual))) |
---|
| 8 | + | if ((assetBalance(tx.sellOrder.sender, Adual) >= ((assetBalance(tx.sellOrder.sender, Bdual) / 100) * 70))) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else if (buy) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else false |
---|
13 | 13 | | case mass: SetAssetScriptTransaction|MassTransferTransaction|ReissueTransaction|TransferTransaction => |
---|
14 | 14 | | let transaction = transactionById(extract(mass.assetId)) |
---|
15 | 15 | | match transaction { |
---|
16 | 16 | | case issueTx: SetAssetScriptTransaction|MassTransferTransaction|ReissueTransaction|TransferTransaction|IssueTransaction => |
---|
17 | 17 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | throw("You cannot transfer this token") |
---|
20 | 20 | | } |
---|
21 | 21 | | case _ => |
---|
22 | 22 | | true |
---|
23 | 23 | | } |
---|