tx · 3BwbhS9qoQoCxDggSjkH4LMvPNHfxS1475NkvCjwv1Vd

3N44cXXhd7Xk7hr7JkLa3mTStLQnFpUfKgC:  -0.00200000 Waves

2024.04.28 22:51 [3083151] smart account 3N44cXXhd7Xk7hr7JkLa3mTStLQnFpUfKgC > SELF 0.00000000 Waves

{ "type": 13, "id": "3BwbhS9qoQoCxDggSjkH4LMvPNHfxS1475NkvCjwv1Vd", "fee": 200000, "feeAssetId": null, "timestamp": 1714333961006, "version": 1, "sender": "3N44cXXhd7Xk7hr7JkLa3mTStLQnFpUfKgC", "senderPublicKey": "EMFFTUQwpCrBAT6yi2xNweK94ew8LJEghFxaD7GBTCrN", "proofs": [ "2GJYwrhPFRGR3WjoFDWLWFzo7mKMDtCBMsiAUkn7feTjc5rysMCEWkBogj2wKVLfkCuYUqVqwkukPut9ag48wqhu" ], "script": "base64:BgIGCAISABIABQAGdXNkbklkASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAJdXNkbklkU3RyAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAAIcHV6emxlSWQBIFQg/ZqGxjcfmqC9eEjI30n8t7nczOflywY5wXQfieTbAAtwdXp6bGVJZFN0cgIsNmZRUmFMM0wyNW5HcWV2WFQ4a3h3akJTMjhma0JFcnJKNjlKWWNqN3FLZ1cBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAACAWkBE3N3YXBBbmRUb3B1cFN0YWtpbmcABAdiYWxhbmNlCQDwBwIFBHRoaXMFBnVzZG5JZAQDaW52CQD8BwQJAQdBZGRyZXNzAQEaAVSv8yQUHiM2iXLvdiGKWE9nvJtEVfIzHpcCEmV4Y2hhbmdlVGhlbkludm9rZQkAzAgCBQtwdXp6bGVJZFN0cgkAzAgCAiMzTXU3VkhBV216RnVDOENDMWpMNjZlZ3dXZHpNbVUzR01kTgkAzAgCAgt0b3BVcFJld2FyZAkAzAgCBQNuaWwJAMwIAgAABQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBnVzZG5JZAUHYmFsYW5jZQUDbmlsAwkAAAIFA2ludgUDaW52CQDMCAIJAQxJbnRlZ2VyRW50cnkCAg5zdGF0c19sYXN0U3dhcAUGaGVpZ2h0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICE3N0YXRzX3RvdGFsU3dhcHBlZF8FCXVzZG5JZFN0cgkAZAIJAQ10cnlHZXRJbnRlZ2VyAQkArAICAhNzdGF0c190b3RhbFN3YXBwZWRfBQl1c2RuSWRTdHIFB2JhbGFuY2UFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQx0b3B1cFN0YWtpbmcABANpbnYJAPwHBAkBB0FkZHJlc3MBARoBVDkA0yfX6Pybzd6Nx/bYRYn8qLmg8Z7zZQILdG9wVXBSZXdhcmQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUIcHV6emxlSWQJAPAHAgUEdGhpcwUIcHV6emxlSWQFA25pbAMJAAACBQNpbnYFA2ludgkAzAgCCQEMSW50ZWdlckVudHJ5AgIOc3RhdHNfbGFzdFN3YXAFBmhlaWdodAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlebpcOI8=", "chainId": 84, "height": 3083151, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D6UX9eVFsCGx9iSHFkKUScxc5UfuwhMtNjHpbeTS7dmp Next: none Diff:
OldNewDifferences
55
66 let usdnIdStr = "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"
77
8-let puzzleId = base58'HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS'
8+let puzzleId = base58'6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW'
99
10-let puzzleIdStr = "HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS"
10+let puzzleIdStr = "6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW"
1111
1212 func tryGetInteger (key) = match getInteger(this, key) {
1313 case b: Int =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let usdnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
66 let usdnIdStr = "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"
77
8-let puzzleId = base58'HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS'
8+let puzzleId = base58'6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW'
99
10-let puzzleIdStr = "HEB8Qaw9xrWpWs8tHsiATYGBWDBtP2S7kcPALrMu43AS"
10+let puzzleIdStr = "6fQRaL3L25nGqevXT8kxwjBS28fkBErrJ69JYcj7qKgW"
1111
1212 func tryGetInteger (key) = match getInteger(this, key) {
1313 case b: Int =>
1414 b
1515 case _ =>
1616 0
1717 }
1818
1919
2020 @Callable(i)
2121 func swapAndTopupStaking () = {
2222 let balance = assetBalance(this, usdnId)
2323 let inv = invoke(Address(base58'3N5xRJDevNVcgHnJ2pgKKS2DnxVmPrgzW1C'), "exchangeThenInvoke", [puzzleIdStr, "3Mu7VHAWmzFuC8CC1jL66egwWdzMmU3GMdN", "topUpReward", nil, 0], [AttachedPayment(usdnId, balance)])
2424 if ((inv == inv))
2525 then [IntegerEntry("stats_lastSwap", height), IntegerEntry(("stats_totalSwapped_" + usdnIdStr), (tryGetInteger(("stats_totalSwapped_" + usdnIdStr)) + balance))]
2626 else throw("Strict value is not equal to itself.")
2727 }
2828
2929
3030
3131 @Callable(i)
3232 func topupStaking () = {
3333 let inv = invoke(Address(base58'3Mu7VHAWmzFuC8CC1jL66egwWdzMmU3GMdN'), "topUpReward", nil, [AttachedPayment(puzzleId, assetBalance(this, puzzleId))])
3434 if ((inv == inv))
3535 then [IntegerEntry("stats_lastSwap", height)]
3636 else throw("Strict value is not equal to itself.")
3737 }
3838
3939
4040 @Verifier(tx)
4141 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4242

github/deemru/w8io/026f985 
22.89 ms