tx · 2kXRVwJK9EfiLZBfe1FHa1cxJjfNAmrtwExpSj4Ku6jY

3Myw1JbRFTwdqC6BdqAigJNfmdDZUpXrKds:  -0.01400000 Waves

2020.10.04 16:09 [1205873] smart account 3Myw1JbRFTwdqC6BdqAigJNfmdDZUpXrKds > SELF 0.00000000 Waves

{ "type": 13, "id": "2kXRVwJK9EfiLZBfe1FHa1cxJjfNAmrtwExpSj4Ku6jY", "fee": 1400000, "feeAssetId": null, "timestamp": 1601817011099, "version": 2, "chainId": 84, "sender": "3Myw1JbRFTwdqC6BdqAigJNfmdDZUpXrKds", "senderPublicKey": "B7NXwtuecLNKUB2UfBQxK3imBCnM64HFuV1zLx66CMKk", "proofs": [ "rPH8jjmhirxuKxMPz89kAexqM7nkQFTEC78fPQMKBKD5aKz4gF49qYrFQnGwJFAnn6MB5L6qrBR8E5Ynxct7Xt1" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQEAAAAAAAAAAgAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIWNhbiBob2RsIHdhdmVzIG9ubHkgYXQgdGhlIG1vbWVudAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAQAAA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AByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAAAQAAACCWNrPC1AlknxwnLr4Vwx1+NtYE1WanzBF/KO9/lK4gdwbYK9Il", "height": 1205873, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8BVcqP4wTHAAxhGSZajivP2F3yXqB9qzqV7veaX1dtqm Next: none Diff:
OldNewDifferences
1717 0
1818 }
1919 let newAmount = (currentAmount + ((pmt.amount / 100) * 120))
20- let z = (toString(newAmount) + "|block")
20+ let z = (toString(newAmount) + ",block")
2121 WriteSet([DataEntry(currentKey, z)])
2222 }
2323 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func deposit () = {
88 let pmt = extract(i.payment)
99 if (isDefined(pmt.assetId))
1010 then throw("can hodl waves only at the moment")
1111 else {
1212 let currentKey = toBase58String(i.caller.bytes)
1313 let currentAmount = match getInteger(this, currentKey) {
1414 case a: Int =>
1515 a
1616 case _ =>
1717 0
1818 }
1919 let newAmount = (currentAmount + ((pmt.amount / 100) * 120))
20- let z = (toString(newAmount) + "|block")
20+ let z = (toString(newAmount) + ",block")
2121 WriteSet([DataEntry(currentKey, z)])
2222 }
2323 }
2424
2525
2626
2727 @Callable(i)
2828 func withdraw (amount) = {
2929 let currentKey = toBase58String(i.caller.bytes)
3030 let currentAmount = match getInteger(this, currentKey) {
3131 case a: Int =>
3232 a
3333 case _ =>
3434 0
3535 }
3636 let newAmount = (currentAmount - amount)
3737 if ((0 > amount))
3838 then throw("Can't withdraw negative amount")
3939 else if ((0 > newAmount))
4040 then throw("Not enough balance")
4141 else ScriptResult(WriteSet([DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, unit)]))
4242 }
4343
4444
4545 @Verifier(tx)
4646 func verify () = match tx {
4747 case d: SetScriptTransaction =>
4848 sigVerify(tx.bodyBytes, tx.proofs[0], base58'B7NXwtuecLNKUB2UfBQxK3imBCnM64HFuV1zLx66CMKk')
4949 case _ =>
5050 true
5151 }
5252

github/deemru/w8io/169f3d6 
41.15 ms