tx · GiqnqJJKqraFiusjxdjnXLXpsppzVNEDP4JsAfpdDfbW

3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL:  -0.01000000 Waves

2022.04.21 09:41 [2017951] smart account 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL > SELF 0.00000000 Waves

{ "type": 13, "id": "GiqnqJJKqraFiusjxdjnXLXpsppzVNEDP4JsAfpdDfbW", "fee": 1000000, "feeAssetId": null, "timestamp": 1650523340988, "version": 2, "chainId": 84, "sender": "3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL", "senderPublicKey": "FuM9F3sAdx6ZQfJfJMCdjC9w4wzTDx6F1KgWCbAM1KRy", "proofs": [ "57tSr3teZ6qNEUsUJXbKcHs8va6WLm9D78H7Um4Qh8xsseKWqCWVMRZR7gazYpjJpXYGBg1VNkKkugXyTaRP3djB" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAGAQAAAAVhc0ludAAAAAEAAAAFdmFsdWUEAAAAByRtYXRjaDAFAAAABXZhbHVlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAA2ludAUAAAAHJG1hdGNoMAUAAAADaW50CQAAAgAAAAECAAAADWV4cGVjdGVkOiBJbnQBAAAAEWFzVXNlckJhbGFuY2VEYXRhAAAAAQAAAAV2YWx1ZQQAAAAHJG1hdGNoMAUAAAAFdmFsdWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAIihJbnQsIEludCwgSW50LCBJbnQsIEludCwgQm9vbGVhbikEAAAAAXgFAAAAByRtYXRjaDAIBQAAAAF4AAAAAl8zBAAAAAF0BQAAAAckbWF0Y2gwCQAAAgAAAAECAAAAIndyb25nIHR5cGUsIGV4cGVjdGVkOiBJbnQ1JkJvb2xlYW4AAAAABG1haW4JAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNQQVp2OXRnSzFQWDdkS1I3YjRrY2hxNXFkcFVTM0c1c1lUAAAAAA9hc3NldFN0cmluZ1VzZGMCAAAALDZYdEhqcFhiczlSUkpQMlNyOUdVeVZxekFDY2J5OVRrVGhIWG5qVkM1Q0RKAAAAAAtyZXNlcnZlVXNkYwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01zUlFocDJjYlhKUXhIRVR6ZFpRZGoyUWZQNGIzTXA2VUwAAAAAB2Fzc2V0SWQJAAJZAAAAAQUAAAAPYXNzZXRTdHJpbmdVc2RjAAAAAgAAAAFpAQAAAAt1c2VyQmFsYW5jZQAAAAAJAAUUAAAAAgUAAAADbmlsAAAAAAA1pOkAAAAAAWkBAAAABmJ5ZWJ5ZQAAAAEAAAAEbWlubQQAAAAJYXZhaWxhYmxlCQAD8AAAAAIFAAAABG1haW4FAAAAB2Fzc2V0SWQDCQAAZgAAAAIFAAAABG1pbm0FAAAACWF2YWlsYWJsZQkABRQAAAACBQAAAANuaWwJAAGkAAAAAQUAAAAEbWlubQQAAAAKZGVwb3NpdFVzZAkBAAAABWFzSW50AAAAAQkAA/wAAAAEBQAAAAtyZXNlcnZlVXNkYwIAAAALdXNlckJhbGFuY2UFAAAAA25pbAUAAAADbmlsBAAAAAF2AwkAAGYAAAACBQAAAApkZXBvc2l0VXNkBQAAAAlhdmFpbGFibGUFAAAACmRlcG9zaXRVc2QFAAAACWF2YWlsYWJsZQkABRQAAAACBQAAAANuaWwJAAGkAAAAAQUAAAABdgAAAABFh8Qf", "height": 2017951, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3AP1zzRRsp6oxepcA8WxBBgrfiuKgLSWWTXm6ToGQeRZ Next: D2nUgpeTqW88MREYt1GmVCaE2CcsvUf3JTYnoXNh8UuG Diff:
OldNewDifferences
2626 let assetId = fromBase58String(assetStringUsdc)
2727
2828 @Callable(i)
29-func userBalance (addr) = $Tuple2(nil, 900000000)
29+func userBalance () = $Tuple2(nil, 900000000)
3030
3131
3232
3636 if ((minm > available))
3737 then $Tuple2(nil, toString(minm))
3838 else {
39- let depositUsd = asInt(invoke(reserveUsdc, "userBalance", [toString(this)], nil))
39+ let depositUsd = asInt(invoke(reserveUsdc, "userBalance", nil, nil))
4040 let v = if ((depositUsd > available))
4141 then depositUsd
4242 else available
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func asInt (value) = match value {
55 case int: Int =>
66 int
77 case _ =>
88 throw("expected: Int")
99 }
1010
1111
1212 func asUserBalanceData (value) = match value {
1313 case x: (Int, Int, Int, Int, Int, Boolean) =>
1414 x._3
1515 case t =>
1616 throw("wrong type, expected: Int5&Boolean")
1717 }
1818
1919
2020 let main = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
2121
2222 let assetStringUsdc = "6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ"
2323
2424 let reserveUsdc = addressFromStringValue("3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL")
2525
2626 let assetId = fromBase58String(assetStringUsdc)
2727
2828 @Callable(i)
29-func userBalance (addr) = $Tuple2(nil, 900000000)
29+func userBalance () = $Tuple2(nil, 900000000)
3030
3131
3232
3333 @Callable(i)
3434 func byebye (minm) = {
3535 let available = assetBalance(main, assetId)
3636 if ((minm > available))
3737 then $Tuple2(nil, toString(minm))
3838 else {
39- let depositUsd = asInt(invoke(reserveUsdc, "userBalance", [toString(this)], nil))
39+ let depositUsd = asInt(invoke(reserveUsdc, "userBalance", nil, nil))
4040 let v = if ((depositUsd > available))
4141 then depositUsd
4242 else available
4343 $Tuple2(nil, toString(v))
4444 }
4545 }
4646
4747

github/deemru/w8io/026f985 
24.33 ms