tx · 556m3ix8sXWUNEY44juYAKR7TFKG4cd148ZvF3LrSXRm

3MzwNdM8LQZEPXq3d4uXvxeZGpBwVQXs9RD:  -0.00200000 Waves

2022.08.27 23:08 [2203343] smart account 3MzwNdM8LQZEPXq3d4uXvxeZGpBwVQXs9RD > SELF 0.00000000 Waves

{ "type": 13, "id": "556m3ix8sXWUNEY44juYAKR7TFKG4cd148ZvF3LrSXRm", "fee": 200000, "feeAssetId": null, "timestamp": 1661630959702, "version": 2, "chainId": 84, "sender": "3MzwNdM8LQZEPXq3d4uXvxeZGpBwVQXs9RD", "senderPublicKey": "G4H6mB4yX5B1YAf6cKk4TteRS3NbLVrZ2i45DJGqqwLV", "proofs": [ "2tNh3aaHzX7Lm25tqsWA7q9kqs2v7uoTgPsAw1EALrJkAANv6nNrEjLs5T6AxficPxwd7SSQy9cgYPGyGAH5B3Ry" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgMKAQESABIDCgEBAAAAAgAAAAAEdXNkTgEAAAAg11KRGPRfT6VehNuJvBkobHB7OMalzc+gLp7N2ofv42AAAAAABHVzZEMBAAAAIPQcuTcYg4l4Uh6IaJaLWyiuNgmUbeQfgPZEel3eCXgMAAAABAAAAAFpAQAAAAp1c2ROX3N0YWtlAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVzZE4JAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAAQY3VycmVudExpcXVpZGl0eQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkABCUAAAABCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIJAABkAAAAAgUAAAAQY3VycmVudExpcXVpZGl0eQgJAAGRAAAAAggF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CAUAAAABaQAAAAxvcmlnaW5DYWxsZXIFAAAABmFtb3VudAUAAAAEdXNkQwUAAAADbmlsCQAAAgAAAAECAAAADnRvbyBiaWcgYW1vdW50AAAAAInKjNw=", "height": 2203343, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4jJukCVwFuVQSdn7GHjdg6chkXogS7bvrgdndVuQgJRp Next: Dqf4N925hWDVBJfm7van6x6mcSn6Ps2dCQjtm3mUWP94 Diff:
OldNewDifferences
1616
1717
1818 @Callable(i)
19-func usdN_cancelStake (amount) = if ((getIntegerValue(this, toString(i.caller)) >= amount))
20- then [ScriptTransfer(i.caller, amount, usdN)]
19+func usdN_cancelStake (amount) = if ((getIntegerValue(this, toString(i.originCaller)) >= amount))
20+ then [ScriptTransfer(i.originCaller, amount, usdN)]
2121 else throw("too big amount")
2222
2323
3333
3434
3535 @Callable(i)
36-func usdC_cancelStake (amount) = if ((getIntegerValue(this, toString(i.caller)) >= amount))
37- then [ScriptTransfer(i.caller, amount, usdC)]
36+func usdC_cancelStake (amount) = if ((getIntegerValue(this, toString(i.originCaller)) >= amount))
37+ then [ScriptTransfer(i.originCaller, amount, usdC)]
3838 else throw("too big amount")
3939
4040
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let usdN = base58'FVXgJ86erBw5GAMeAw1CnYXwQn48BFAEAhRyHPUjbMQB'
55
66 let usdC = base58'HRut8ESAGXxwvsKJky1V96qRtqyXQd4Apq4GY7TE5yGP'
77
88 @Callable(i)
99 func usdN_stake () = if ((i.payments[0].assetId != usdN))
1010 then throw("unexpected asset")
1111 else {
1212 let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0)
1313 [IntegerEntry(toString(i.originCaller), (currentLiquidity + i.payments[0].amount))]
1414 }
1515
1616
1717
1818 @Callable(i)
19-func usdN_cancelStake (amount) = if ((getIntegerValue(this, toString(i.caller)) >= amount))
20- then [ScriptTransfer(i.caller, amount, usdN)]
19+func usdN_cancelStake (amount) = if ((getIntegerValue(this, toString(i.originCaller)) >= amount))
20+ then [ScriptTransfer(i.originCaller, amount, usdN)]
2121 else throw("too big amount")
2222
2323
2424
2525 @Callable(i)
2626 func usdC_stake () = if ((i.payments[0].assetId != usdC))
2727 then throw("unexpected asset")
2828 else {
2929 let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0)
3030 [IntegerEntry(toString(i.originCaller), (currentLiquidity + i.payments[0].amount))]
3131 }
3232
3333
3434
3535 @Callable(i)
36-func usdC_cancelStake (amount) = if ((getIntegerValue(this, toString(i.caller)) >= amount))
37- then [ScriptTransfer(i.caller, amount, usdC)]
36+func usdC_cancelStake (amount) = if ((getIntegerValue(this, toString(i.originCaller)) >= amount))
37+ then [ScriptTransfer(i.originCaller, amount, usdC)]
3838 else throw("too big amount")
3939
4040

github/deemru/w8io/026f985 
23.49 ms