tx · 2Qp12fZwLwVAPpCiue1oQXGCPANFKZiZy5ByGNhMsLSr

3Mu35ZY17eYKTNJDAt3waBLGKuC398ZK9ha:  -0.09990000 Waves

2020.10.16 21:48 [1223512] smart account 3Mu35ZY17eYKTNJDAt3waBLGKuC398ZK9ha > SELF 0.00000000 Waves

{ "type": 13, "id": "2Qp12fZwLwVAPpCiue1oQXGCPANFKZiZy5ByGNhMsLSr", "fee": 9990000, "feeAssetId": null, "timestamp": 1602874110910, "version": 2, "chainId": 84, "sender": "3Mu35ZY17eYKTNJDAt3waBLGKuC398ZK9ha", "senderPublicKey": "ex6ShQCmaXZr3wDm8wGbC3EMesy4a8hsg3hoF1gqDqJ", "proofs": [ "5dDusxuHfnYAoPK5KdLqyBsvsMEtLFnE9NdkPqqevh2rLwx8LRzqhGcZ8HWGDRiyhCm51vaFC2A7iBzTtF3Swfuh" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgMKAQESAAAAAAAAAAADAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAA9Db2xsYXRlcmFsVG9rZW4BAAAAIEXAbIcI8kUexOI20CBj9o7wm7aY+dhr4NqLF5bb9v1DBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkBQAAAA9Db2xsYXRlcmFsVG9rZW4HBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQ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GxlcgUAAAAGYW1vdW50BQAAAA9Db2xsYXRlcmFsVG9rZW4FAAAAA25pbAAAAAFpAQAAAAhwYXlZaWVsZAAAAAAEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMJAABmAAAAAgUAAAANY3VycmVudEFtb3VudAAAAAAAAAAAAAQAAAAGYW1vdW50CQAD6wAAAAIFAAAABHRoaXMFAAAAC0dvdmVyblRva2VuAwkAAGYAAAACAAAAAAAAAAAKBQAAAAZhbW91bnQJAAACAAAAAQIAAAAhTm8gZW5vdWdoIEdvdmVyblRva2VuIEluIENvbnRyYWN0CQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQAAAAAAAAAACgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAACgUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABAgAAADxZb3UgbmVlZCB0byBkZXBvc2l0IENvbGxhdGVyYWwgVG9rZW4gdG8gcmVjZWl2ZSBHb3Zlcm4gVG9rZW4AAAAApnHi3w==", "height": 1223512, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2evVrpxvxeas8wBe8q3aDNMX5NTuxbDXcK6N4wr8BPWq Next: 7fpkbU5g8CPCG3y2TD3ZKHrGUSBG6kYgmUzpJzeBjVMn Diff:
OldNewDifferences
5454
5555 @Callable(a)
5656 func payYield () = {
57- let j = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
57+ let j = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
5858 let d = toBase58String(a.caller.bytes)
5959 let e = {
6060 let f = getInteger(this, d)
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 = {
3737 let f = getInteger(this, d)
3838 if ($isInstanceOf(f, "Int"))
3939 then {
4040 let g = f
4141 g
4242 }
4343 else 0
4444 }
4545 let h = (e - i)
4646 if ((0 > i))
4747 then throw("Can't withdraw negative amount")
4848 else if ((0 > h))
4949 then throw("User cannot withdraw more than deposited funds")
5050 else ScriptResult(WriteSet([DataEntry(d, h)]), TransferSet([ScriptTransfer(a.caller, i, b)]))
5151 }
5252
5353
5454
5555 @Callable(a)
5656 func payYield () = {
57- let j = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
57+ let j = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
5858 let d = toBase58String(a.caller.bytes)
5959 let e = {
6060 let f = getInteger(this, d)
6161 if ($isInstanceOf(f, "Int"))
6262 then {
6363 let g = f
6464 g
6565 }
6666 else 0
6767 }
6868 if ((e > 0))
6969 then {
7070 let i = assetBalance(this, j)
7171 if ((10 > i))
7272 then throw("No enough GovernToken In Contract")
7373 else ScriptResult(WriteSet([DataEntry(d, 10)]), TransferSet([ScriptTransfer(a.caller, 10, j)]))
7474 }
7575 else throw("You need to deposit Collateral Token to receive Govern Token")
7676 }
7777
7878

github/deemru/w8io/026f985 
25.94 ms