tx · 9HfCcefvPAcEtEhgEq8E8qzJVA1HKY2KQdKrkaXuZzVQ

3N5KWDSz3ynimUoZyu8d7sHQuGhdjPbnj1T:  -0.01000000 Waves

2023.09.28 13:26 [2775144] smart account 3N5KWDSz3ynimUoZyu8d7sHQuGhdjPbnj1T > SELF 0.00000000 Waves

{ "type": 13, "id": "9HfCcefvPAcEtEhgEq8E8qzJVA1HKY2KQdKrkaXuZzVQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1695896832113, "version": 2, "chainId": 84, "sender": "3N5KWDSz3ynimUoZyu8d7sHQuGhdjPbnj1T", "senderPublicKey": "DFdS6bGBeh573tRUkRP8LBGiGBfYyrDHm6ABQBfrXyPK", "proofs": [ "Xf9g2B9Bjg2PBa8Wc5oqLcDaW44wTTyFtBYQvVTAQeXCVTpE3vBivad4uKmhVyBjCaVFEVRvSXhpDYyd6pBKyMB" ], "script": "base64:BgIICAISBAoCAQgBAAptZWRhbEJ5dGVzASADClWHaheR/YMoP2XDK81goKJgFjpKqpbgHvXeA0qA3AEBaQEKZ2V0QmFsYW5jZQIGYW1vdW50B2Fzc2V0SWQEBnNlbmRlcgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBA1jdXJyZW50QW1vdW50CQELdmFsdWVPckVsc2UCCQDwBwIFBHRoaXMFCm1lZGFsQnl0ZXMAAAQJbmV3QW1vdW50CQBlAgUNY3VycmVudEFtb3VudAUGYW1vdW50AwkAZgIAAAUGYW1vdW50CQACAQIfQ2Fubm90IHdpdGhkcmF3IG5lZ2F0aXZlIGFtb3VudAMJAGYCAAAFCW5ld0Ftb3VudAkAzAgCCQACAQISTm90IGVub3VnaCBiYWxhbmNlCQDMCAIJAAIBCQCkAwEFCW5ld0Ftb3VudAUDbmlsCQDMCAIJAAIBCQCkAwEFCW5ld0Ftb3VudAUDbmlsALZWsyU=", "height": 2775144, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: XGBSs2ziHEdAL6hsayyHU7ffKP3Fcu3JRuaVPJDrMDz Next: 2RVtsmVsuVWxdmrQ3KHA66qN74bHA4YkDKEVJZSFRzhh Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let medalBytes = base58'CsN2rorkXvYvF1buXVxZH8qzxfdsiVgZAiJYRanz24s'
55
66 @Callable(i)
77 func getBalance (amount,assetId) = {
88 let sender = toBase58String(i.caller.bytes)
99 let currentAmount = valueOrElse(assetBalance(this, medalBytes), 0)
1010 let newAmount = (currentAmount - amount)
1111 if ((0 > amount))
1212 then throw("Cannot withdraw negative amount")
1313 else if ((0 > newAmount))
1414 then [throw("Not enough balance"), throw(toString(newAmount))]
1515 else [throw(toString(newAmount))]
1616 }
1717
1818

github/deemru/w8io/026f985 
30.44 ms