tx · AjYPw7LWQc7MY5FFQRgbqPyqm1F8Uce95hCekBCjBovP

3Myes5WidGyaEZamrigMnHxSp7jofp75MKg:  -1.00000000 Waves

2020.10.16 20:24 [1223430] smart account 3Myes5WidGyaEZamrigMnHxSp7jofp75MKg > SELF 0.00000000 Waves

{ "type": 13, "id": "AjYPw7LWQc7MY5FFQRgbqPyqm1F8Uce95hCekBCjBovP", "fee": 100000000, "feeAssetId": null, "timestamp": 1602869097876, "version": 2, "chainId": 84, "sender": "3Myes5WidGyaEZamrigMnHxSp7jofp75MKg", "senderPublicKey": "EHphUnoiuXaNVNoUnDN4jPnVYzBfCN8WmL8KKYE2YGLF", "proofs": [ "5UUmBr5JENfFHRJjTrCQt21b6VCbAYewyCSbMRDa9zfnf9zz4oSxYX3vZ5yiJKGRRrM34oxnL8pGSeZh7YcJa8HN" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgMKAQESAAAAAAAAAAADAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAA9Db2xsYXRlcmFsVG9rZW4BAAAAIEXAbIcI8kUexOI20CBj9o7wm7aY+dhr4NqLF5bb9v1DBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkBQAAAA9Db2xsYXRlcmFsVG9rZW4HBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAANY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TH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50CQAD6wAAAAIFAAAABHRoaXMFAAAAC0dvdmVyblRva2VuBAAAAAluZXdBbW91bnQJAABlAAAAAgUAAAANY3VycmVudEFtb3VudAAAAAAAAAAACgMJAABmAAAAAgAAAAAAAAAAAAUAAAAJbmV3QW1vdW50CQAAAgAAAAECAAAAIE5vdCBlbm91Z2ggR292ZXJUb2tlbiBpbiBCYWxhbmNlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAAKBQAAAAtHb3Zlcm5Ub2tlbgUAAAADbmlsAAAAAHNTHNY=", "height": 1223430, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3df1uov6jKwcgW9c8qBGWTzjjnu31QhygjgsyyuKkTob Next: ARWVvKX2j5QHhMVU8kusvf27aXdgZ1TUZ2CTM6Rdp2ah Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func deposit () = {
88 let b = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
99 let c = extract(a.payment)
1010 if (if (isDefined(c.assetId))
1111 then (extract(c.assetId) == b)
1212 else false)
1313 then {
1414 let d = toBase58String(a.caller.bytes)
1515 let e = {
1616 let f = getInteger(this, d)
1717 if ($isInstanceOf(f, "Int"))
1818 then {
1919 let g = f
2020 g
2121 }
2222 else 0
2323 }
2424 let h = (e + c.amount)
2525 WriteSet([DataEntry(d, h)])
2626 }
2727 else throw("Can deposit only MyToken")
2828 }
2929
3030
3131
3232 @Callable(a)
3333 func withdraw (i) = {
3434 let b = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
3535 let d = toBase58String(a.caller.bytes)
3636 let e = assetBalance(this, b)
3737 let h = (e - i)
3838 if ((0 > i))
3939 then throw("Can't withdraw negative amount")
4040 else if ((0 > h))
4141 then throw("Not enough CollateralToken in Balance")
4242 else ScriptResult(WriteSet([DataEntry(d, h)]), TransferSet([ScriptTransfer(a.caller, i, b)]))
4343 }
4444
4545
4646
4747 @Callable(a)
4848 func payYield () = {
4949 let j = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
5050 let d = toBase58String(a.caller.bytes)
5151 let e = assetBalance(this, j)
5252 let h = (e - 10)
5353 if ((0 > h))
5454 then throw("Not enough GoverToken in Balance")
5555 else ScriptResult(WriteSet([DataEntry(d, h)]), TransferSet([ScriptTransfer(a.caller, 10, j)]))
5656 }
5757
5858

github/deemru/w8io/169f3d6 
31.63 ms