tx · FVYPwp58zh59ZJgFJyosFoWCZgcrDsr6kX4832uYDjN8
3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr: -0.01000000 Waves
2023.05.05 12:31 [2564335] smart account 3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr > SELF 0.00000000 Waves
{
"type": 13,
"id": "FVYPwp58zh59ZJgFJyosFoWCZgcrDsr6kX4832uYDjN8",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1683279125055,
"version": 2,
"chainId": 84,
"sender": "3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr",
"senderPublicKey": "FDZa2xgu4cguexFSg1X8LsKUrqcYEcLGDpixvT2hNxE5",
"proofs": [
"2shULTgTjXzhnjpoXvjSBhuwUSuoAPrxNpwUuBvafsTNHmcxu5bfPRo9aMrsavjg5McbK8wVN528hBgkpXi8aPMm"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAIeHRuYXB5SWQBAAAAIFo7IE7afJx8sjIhsNqLuRLbzygBZVEzKYrJUwgG7dMSAAAAAAV4dG5JZAEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAAABHRlYW0BAAAAGgFUgZ+lYEJ5Ec/Fw3/A+pQrj/pnHSTSnNBTAAAAAQAAAAFpAQAAAA9idXlYVE5BUFlmb3JYVE4AAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABmFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABXh0bklkCQAAAgAAAAECAAAAFWF0dGFjaCBYVE4gdG9rZW4gb25seQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAIeHRuYXB5SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAR0ZWFtCQAAaQAAAAIFAAAABmFtb3VudAAAAAAAAAAABAUAAAAIeHRuYXB5SWQFAAAAA25pbAAAAADrCE/G",
"height": 2564335,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: UkZrAGSUy2tYySqA9HdkZTEoP6vdtRZYQvvDnTR3gPq
Next: J8b1i4weHE7yLdJDxwvgWWoLUtrtoQYgyg7eAVX3i8P5
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let xtnapyId = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' |
---|
| 4 | + | let xtnapyId = base58'75Dz6E9vHi3gcmLvA4DesPRC7QmWaGK1ZR2uAGEXmrPK' |
---|
5 | 5 | | |
---|
6 | | - | let xtnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
| 6 | + | let xtnId = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
| 7 | + | |
---|
| 8 | + | let team = base58'3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr' |
---|
7 | 9 | | |
---|
8 | 10 | | @Callable(i) |
---|
9 | 11 | | func buyXTNAPYforXTN () = { |
---|
|
11 | 13 | | let amount = pmt.amount |
---|
12 | 14 | | if ((pmt.assetId != xtnId)) |
---|
13 | 15 | | then throw("attach XTN token only") |
---|
14 | | - | else [ScriptTransfer(i.caller, (amount * 100), xtnapyId)] |
---|
15 | | - | } |
---|
16 | | - | |
---|
17 | | - | |
---|
18 | | - | |
---|
19 | | - | @Callable(i) |
---|
20 | | - | func sellXTNAPYforXTN () = { |
---|
21 | | - | let pmt = value(i.payments[0]) |
---|
22 | | - | let amount = pmt.amount |
---|
23 | | - | if ((pmt.assetId != xtnapyId)) |
---|
24 | | - | then throw("attach XTNAPY token only") |
---|
25 | | - | else [ScriptTransfer(i.caller, (amount / 100), xtnId)] |
---|
| 16 | + | else [ScriptTransfer(i.caller, amount, xtnapyId), ScriptTransfer(Address(team), (amount / 4), xtnapyId)] |
---|
26 | 17 | | } |
---|
27 | 18 | | |
---|
28 | 19 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let xtnapyId = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' |
---|
| 4 | + | let xtnapyId = base58'75Dz6E9vHi3gcmLvA4DesPRC7QmWaGK1ZR2uAGEXmrPK' |
---|
5 | 5 | | |
---|
6 | | - | let xtnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
| 6 | + | let xtnId = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
| 7 | + | |
---|
| 8 | + | let team = base58'3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr' |
---|
7 | 9 | | |
---|
8 | 10 | | @Callable(i) |
---|
9 | 11 | | func buyXTNAPYforXTN () = { |
---|
10 | 12 | | let pmt = value(i.payments[0]) |
---|
11 | 13 | | let amount = pmt.amount |
---|
12 | 14 | | if ((pmt.assetId != xtnId)) |
---|
13 | 15 | | then throw("attach XTN token only") |
---|
14 | | - | else [ScriptTransfer(i.caller, (amount * 100), xtnapyId)] |
---|
15 | | - | } |
---|
16 | | - | |
---|
17 | | - | |
---|
18 | | - | |
---|
19 | | - | @Callable(i) |
---|
20 | | - | func sellXTNAPYforXTN () = { |
---|
21 | | - | let pmt = value(i.payments[0]) |
---|
22 | | - | let amount = pmt.amount |
---|
23 | | - | if ((pmt.assetId != xtnapyId)) |
---|
24 | | - | then throw("attach XTNAPY token only") |
---|
25 | | - | else [ScriptTransfer(i.caller, (amount / 100), xtnId)] |
---|
| 16 | + | else [ScriptTransfer(i.caller, amount, xtnapyId), ScriptTransfer(Address(team), (amount / 4), xtnapyId)] |
---|
26 | 17 | | } |
---|
27 | 18 | | |
---|
28 | 19 | | |
---|