tx · 33h2ZEy197kGiwtGx4AS4gznYk1sGKdtUFa4mhWTXLXW

3NABuNeBpSvWZPDR8BN5jjSMLfMqXcodtM8:  -0.01000000 Waves

2023.06.26 02:51 [2638850] smart account 3NABuNeBpSvWZPDR8BN5jjSMLfMqXcodtM8 > SELF 0.00000000 Waves

{ "type": 13, "id": "33h2ZEy197kGiwtGx4AS4gznYk1sGKdtUFa4mhWTXLXW", "fee": 1000000, "feeAssetId": null, "timestamp": 1687737125722, "version": 2, "chainId": 84, "sender": "3NABuNeBpSvWZPDR8BN5jjSMLfMqXcodtM8", "senderPublicKey": "EYH5iFAFHoFTpSTn7zeh46Ao3BGNwPXNuRfMcfiGmoso", "proofs": [ "wef4cjTMWXjwV8rAQDv8HCKtxTG4MpciAi4BnqVEu95B1SmWLQATzjQc7XRgecdgsRWRm9U1cTyrUXwPokCCpKD" ], "script": "base64:BQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlzTh3b", "height": 2638850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9MMixNwCxqcobUjJvgMUQ343WwL86xuTuwuaz2e4UFj5 Next: 47DVS1BTwVHjP6UCHaoReNBzpUkartzLr5gJ9WKexQrX Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-func a (b) = ("leaseAmt_" + b)
5-
6-
7-@Callable(c)
8-func reLease (d) = {
9- let b = toString(c.caller)
10- let e = if ((size(c.payments) == 0))
11- then 0
12- else if (if ((size(c.payments) == 1))
13- then (c.payments[0].assetId == unit)
14- else false)
15- then c.payments[0].amount
16- else throw("Wrong payment")
17- let f = valueOrElse(getInteger(a(b)), 0)
18- let g = valueOrElse(getInteger("totalLeaseAmt"), 0)
19- let h = if ((e > 0))
20- then (f + e)
21- else min([f, d])
22- let i = (h - f)
23- let j = Lease(addressFromStringValue("3PnodeAddressHere"), (g + i))
24- let k = getBinary("leaseId")
25- if (isDefined(k))
26- then [LeaseCancel(value(k))]
27- else (nil ++ (if ((0 > i))
28- then [ScriptTransfer(c.caller, -(i), unit)]
29- else (nil ++ [j, BinaryEntry("leaseId", calculateLeaseId(j)), IntegerEntry("totalLeaseAmt", (g + i)), IntegerEntry(a(b), h)])))
30- }
31-
32-
1+{-# STDLIB_VERSION 5 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)

github/deemru/w8io/169f3d6 
21.12 ms