tx · UkZrAGSUy2tYySqA9HdkZTEoP6vdtRZYQvvDnTR3gPq

3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr:  -0.01000000 Waves

2023.05.03 10:44 [2561294] smart account 3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr > SELF 0.00000000 Waves

{ "type": 13, "id": "UkZrAGSUy2tYySqA9HdkZTEoP6vdtRZYQvvDnTR3gPq", "fee": 1000000, "feeAssetId": null, "timestamp": 1683099958365, "version": 2, "chainId": 84, "sender": "3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr", "senderPublicKey": "FDZa2xgu4cguexFSg1X8LsKUrqcYEcLGDpixvT2hNxE5", "proofs": [ "4vpqMwsab3xj552rW9PHi8Lw2difPSnpJbWuviSzpJ2EyvxoqopgXV9uMPiCttSZ3wG83ZGbZJ3CqgiGxaHJkFRJ" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAACAAAAAAh4dG5hcHlJZAEAAAAgxlIegU7qbuM8wJewDl8s8mrp7Z2yhtGaQnioYH0+G7EAAAAABXh0bklkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAIAAAABaQEAAAAPYnV5WFROQVBZZm9yWFROAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAV4dG5JZAkAAAIAAAABAgAAABVhdHRhY2ggWFROIHRva2VuIG9ubHkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAABmFtb3VudAAAAAAAAAAAZAUAAAAIeHRuYXB5SWQFAAAAA25pbAAAAAFpAQAAABBzZWxsWFROQVBZZm9yWFROAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAh4dG5hcHlJZAkAAAIAAAABAgAAABhhdHRhY2ggWFROQVBZIHRva2VuIG9ubHkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaQAAAAIFAAAABmFtb3VudAAAAAAAAAAAZAUAAAAFeHRuSWQFAAAAA25pbAAAAABFOPJ3", "height": 2561294, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7H6UZtvP9KzJmodBMWpgzK41qdHMdJnEazjnohA1kEA6 Next: FVYPwp58zh59ZJgFJyosFoWCZgcrDsr6kX4832uYDjN8 Diff:
OldNewDifferences
55
66 let xtnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
77
8-let isStopped = false
9-
108 @Callable(i)
119 func buyXTNAPYforXTN () = {
1210 let pmt = value(i.payments[0])
1311 let amount = pmt.amount
1412 if ((pmt.assetId != xtnId))
1513 then throw("attach XTN token only")
16- else if (isStopped)
17- then throw("smart contract is on lock")
18- else [ScriptTransfer(i.caller, amount, xtnapyId)]
14+ else [ScriptTransfer(i.caller, (amount * 100), xtnapyId)]
1915 }
2016
2117
2622 let amount = pmt.amount
2723 if ((pmt.assetId != xtnapyId))
2824 then throw("attach XTNAPY token only")
29- else if (isStopped)
30- then throw("smart contract is on lock")
31- else [ScriptTransfer(i.caller, amount, xtnId)]
25+ else [ScriptTransfer(i.caller, (amount / 100), xtnId)]
3226 }
3327
3428
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xtnapyId = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
55
66 let xtnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
77
8-let isStopped = false
9-
108 @Callable(i)
119 func buyXTNAPYforXTN () = {
1210 let pmt = value(i.payments[0])
1311 let amount = pmt.amount
1412 if ((pmt.assetId != xtnId))
1513 then throw("attach XTN token only")
16- else if (isStopped)
17- then throw("smart contract is on lock")
18- else [ScriptTransfer(i.caller, amount, xtnapyId)]
14+ else [ScriptTransfer(i.caller, (amount * 100), xtnapyId)]
1915 }
2016
2117
2218
2319 @Callable(i)
2420 func sellXTNAPYforXTN () = {
2521 let pmt = value(i.payments[0])
2622 let amount = pmt.amount
2723 if ((pmt.assetId != xtnapyId))
2824 then throw("attach XTNAPY token only")
29- else if (isStopped)
30- then throw("smart contract is on lock")
31- else [ScriptTransfer(i.caller, amount, xtnId)]
25+ else [ScriptTransfer(i.caller, (amount / 100), xtnId)]
3226 }
3327
3428

github/deemru/w8io/026f985 
22.09 ms