tx · 6fywNrsQ61PbV11tYiiri8Eyb729sFxSztTYuVXS36Uh

3P4xeqbUGncKaZ2t1TWyPmtKJwrHVobC4kL:  -0.00100000 Waves

2023.04.19 14:54 [3606966] smart account 3P4xeqbUGncKaZ2t1TWyPmtKJwrHVobC4kL > SELF 0.00000000 Waves

{ "type": 13, "id": "6fywNrsQ61PbV11tYiiri8Eyb729sFxSztTYuVXS36Uh", "fee": 100000, "feeAssetId": null, "timestamp": 1681905270897, "version": 1, "sender": "3P4xeqbUGncKaZ2t1TWyPmtKJwrHVobC4kL", "senderPublicKey": "DvsRdcaZjnT8oexAPK3xRqrEw3KqeQGjWvdKTX3f2N4P", "proofs": [ "3DsBQSLPaqZ29i7c7Fgobj2LSwzCXWfxq4dNQaR6tTpzEdfGV84C46oWyXmWjaVB468cgKrVh549a4JxKVgwmGZJ" ], "script": "base64:BgIECAISAAQADHBvd2VyQWRkcmVzcwkBB0FkZHJlc3MBARoBV0Ov1RrltOOKrDIfaMeqY/GOXgFS7CVs9QAMb3duZXJBZGRyZXNzCQEHQWRkcmVzcwEBGgFXPa9EJDd5wI2zj/ufcyHjz3XhGL3iHnltAAVQT1dFUgEgHBqDoMT3Lh6CR3PXRUPBKIbTqsytzoIzH7EhqJqevEoBBWFzSW50AQF2BAckbWF0Y2gwBQF2AwkAAQIFByRtYXRjaDACA0ludAQBeAUHJG1hdGNoMAUBeAQBdAUHJG1hdGNoMAkAAgECBCNlcnIBAWkBDXVuc3Rha2VfcG93ZXIABAxwb3dlcl9hbW91bnQJAQVhc0ludAEJAPwHBAUMcG93ZXJBZGRyZXNzAgl1c2VyUG93ZXIJAMwIAgkApQgBBQR0aGlzBQNuaWwFA25pbAMJAAACBQxwb3dlcl9hbW91bnQFDHBvd2VyX2Ftb3VudAQHdW5zdGFrZQkA/AcEBQxwb3dlckFkZHJlc3MCB3Vuc3Rha2UJAMwIAgkAZQIFDHBvd2VyX2Ftb3VudAABBQNuaWwFA25pbAMJAAACBQd1bnN0YWtlBQd1bnN0YWtlCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFDG93bmVyQWRkcmVzcwkA8AcCBQR0aGlzBQVQT1dFUgUFUE9XRVIFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgD2zpSb", "chainId": 87, "height": 3606966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CvbaXpVMErYan68T2HzSEVJuXp8aLDyNuPyDCmeR6QuJ Next: none Diff:
OldNewDifferences
2020 let power_amount = asInt(invoke(powerAddress, "userPower", [toString(this)], nil))
2121 if ((power_amount == power_amount))
2222 then {
23- let unstake = invoke(powerAddress, "unstake", [power_amount], nil)
23+ let unstake = invoke(powerAddress, "unstake", [(power_amount - 1)], nil)
2424 if ((unstake == unstake))
2525 then [ScriptTransfer(ownerAddress, assetBalance(this, POWER), POWER)]
2626 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let powerAddress = Address(base58'3P86ne9inVG1Cf4smrEGSdcXyBuEApPcMAc')
55
66 let ownerAddress = Address(base58'3P7Z3ueyFonY7ZwJMq4jaqwr51qMLp3WFat')
77
88 let POWER = base58'2thsACuHmzDMuNezPM32wg9a3BwUzBWDeSKakgz3cw21'
99
1010 func asInt (v) = match v {
1111 case x: Int =>
1212 x
1313 case t =>
1414 throw("#err")
1515 }
1616
1717
1818 @Callable(i)
1919 func unstake_power () = {
2020 let power_amount = asInt(invoke(powerAddress, "userPower", [toString(this)], nil))
2121 if ((power_amount == power_amount))
2222 then {
23- let unstake = invoke(powerAddress, "unstake", [power_amount], nil)
23+ let unstake = invoke(powerAddress, "unstake", [(power_amount - 1)], nil)
2424 if ((unstake == unstake))
2525 then [ScriptTransfer(ownerAddress, assetBalance(this, POWER), POWER)]
2626 else throw("Strict value is not equal to itself.")
2727 }
2828 else throw("Strict value is not equal to itself.")
2929 }
3030
3131

github/deemru/w8io/6500d08 
18.72 ms