tx · B9MWNUY4PTgmhdW6ChmkVyto11f7Z4GtZ7njTUP8Tsi1

3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb:  -0.01000010 Waves

2021.07.08 12:33 [1604450] smart account 3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb > SELF 0.00000000 Waves

{ "type": 13, "id": "B9MWNUY4PTgmhdW6ChmkVyto11f7Z4GtZ7njTUP8Tsi1", "fee": 1000010, "feeAssetId": null, "timestamp": 1625736858237, "version": 2, "chainId": 84, "sender": "3N3giqcqo68bVfkcJt2q7zaaWE7iAJAcKcb", "senderPublicKey": "DjiSdNEMrwCK2ABBPRVSzf8xNRsUAy1if8qvaRtPrWkJ", "proofs": [ "318zdE169pK2RK1Ri4fuqPpjgbR8TzKmpQVfcQT3uAnsnTsjmZqiY1tEKSMMKMusLBvdCShKGFEYKwzoRoeVwDst" ], "script": "base64:AAIFAAAAAAAAAIcIAhIAEgMKAQEaCgoCYTESBHdFVVIaBwoCYTISAWkaCQoCYTMSA3BtdBoQCgJhNBIKY3VycmVudEtleRoTCgJhNRINY3VycmVudEFtb3VudBoNCgJhNhIHJG1hdGNoMBoHCgJhNxIBYRoPCgJhOBIJbmV3QW1vdW50GgwKAmE5EgZhbW91bnQAAAABAAAAAAJhMQEAAAAgaVlvCOUD6kj3dp5v0IBGXRJdAOICC9+kbqLpYow7X+EAAAACAAAAAmEyAQAAAAdkZXBvc2l0AAAAAAQAAAACYTMJAAGRAAAAAggFAAAAAmEyAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAAmEzAAAAB2Fzc2V0SWQFAAAAAmExCQAAAgAAAAECAAAANXdFVVIgLSAnODZFdVJrUmM2Q1BSQ0dtc1JFY21EdzlNbW5mTXA5WmNLc2N6SGcyTnd0b2knBAAAAAJhNAkAAlgAAAABCAgFAAAAAmEyAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTUEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNgIAAAADSW50BAAAAAJhNwUAAAACYTYFAAAAAmE3AAAAAAAAAAAABAAAAAJhOAkAAGQAAAACBQAAAAJhNQgFAAAAAmEzAAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmE4BQAAAANuaWwAAAACYTIBAAAAB3dpdGRyYXcAAAABAAAAAmE5BAAAAAJhNAkAAlgAAAABCAgFAAAAAmEyAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTUEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNgIAAAADSW50BAAAAAJhNwUAAAACYTYFAAAAAmE3AAAAAAAAAAAABAAAAAJhOAkAAGUAAAACBQAAAAJhNQUAAAACYTkDCQAAZgAAAAIAAAAAAAAAAAAFAAAAAmE5CQAAAgAAAAECAAAAH2Nhbid0IHdpdGhkcmF3IG5lZ2F0aXZlcyBhbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAAAmE4CQAAAgAAAAECAAAAEk5vdCBlbm91Z2ggYmFsYW5jZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmE4CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMgAAAAZjYWxsZXIFAAAAAmE5BQAAAAJhMQUAAAADbmlsAAAAAGZGpUc=", "height": 1604450, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4UX9GT7eJdxnddVYeSW7w4YpQrQdees4GKWicyjFcXwM Next: 9GnA8sqHhmiaJEyJiAkzkk9xkGi6kfXDTncZoA4htmug Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let wEUR = base58'6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw'
4+let wEUR = base58'86EuRkRc6CPRCGmsREcmDw9MmnfMp9ZcKsczHg2Nwtoi'
55
66 @Callable(i)
77 func deposit () = {
88 let pmt = i.payments[0]
99 if ((pmt.assetId != wEUR))
10- then throw("wEUR - '6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw'")
10+ then throw("wEUR - '86EuRkRc6CPRCGmsREcmDw9MmnfMp9ZcKsczHg2Nwtoi'")
1111 else {
1212 let currentKey = toBase58String(i.caller.bytes)
1313 let currentAmount = match getInteger(this, currentKey) {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let wEUR = base58'6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw'
4+let wEUR = base58'86EuRkRc6CPRCGmsREcmDw9MmnfMp9ZcKsczHg2Nwtoi'
55
66 @Callable(i)
77 func deposit () = {
88 let pmt = i.payments[0]
99 if ((pmt.assetId != wEUR))
10- then throw("wEUR - '6rMbjABRZavHRc7f6ygZFWPqYDWFm3jGw3hqYeunZAGw'")
10+ then throw("wEUR - '86EuRkRc6CPRCGmsREcmDw9MmnfMp9ZcKsczHg2Nwtoi'")
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)
2020 [IntegerEntry(currentKey, newAmount)]
2121 }
2222 }
2323
2424
2525
2626 @Callable(i)
2727 func witdraw (amount) = {
2828 let currentKey = toBase58String(i.caller.bytes)
2929 let currentAmount = match getInteger(this, currentKey) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
3535 let newAmount = (currentAmount - amount)
3636 if ((0 > amount))
3737 then throw("can't withdraw negatives amount")
3838 else if ((0 > newAmount))
3939 then throw("Not enough balance")
4040 else [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, wEUR)]
4141 }
4242
4343

github/deemru/w8io/169f3d6 
22.44 ms