tx · 4qsRq1eXL1Yyxdm6A2zEBPpQKuH6r4Fj5duxcGkZ5c9D

3MzwNdM8LQZEPXq3d4uXvxeZGpBwVQXs9RD:  -0.00200000 Waves

2022.08.25 06:42 [2199476] smart account 3MzwNdM8LQZEPXq3d4uXvxeZGpBwVQXs9RD > SELF 0.00000000 Waves

{ "type": 13, "id": "4qsRq1eXL1Yyxdm6A2zEBPpQKuH6r4Fj5duxcGkZ5c9D", "fee": 200000, "feeAssetId": null, "timestamp": 1661398990260, "version": 2, "chainId": 84, "sender": "3MzwNdM8LQZEPXq3d4uXvxeZGpBwVQXs9RD", "senderPublicKey": "G4H6mB4yX5B1YAf6cKk4TteRS3NbLVrZ2i45DJGqqwLV", "proofs": [ "4zw4Y64PoHu2FB9eMe7wPQWrgzp1jC81xhF3nDdNrdg38nssJK4iwXyYQiMJ1rem83f3CwTQ8ZWQNNQCkPXpg2ev" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgMKAQESABIDCgEBAAAAAgAAAAAEdXNkTgEAAAAg11KRGPRfT6VehNuJvBkobHB7OMalzc+gLp7N2ofv42AAAAAABHVzZEMBAAAAIPQcuTcYg4l4Uh6IaJaLWyiuNgmUbeQfgPZEel3eCXgMAAAABAAAAAFpAQAAAAp1c2ROX3N0YWtlAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVzZE4JAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAAQY3VycmVudExpcXVpZGl0eQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkABCUAAAABCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIJAABkAAAAAgUAAAAQY3VycmVudExpcXVpZGl0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AAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAEdXNkQwUAAAADbmlsCQAAAgAAAAECAAAADnRvbyBiaWcgYW1vdW50AAAAAJyQSzk=", "height": 2199476, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: CHxxqpdozBKGNrorHNXLLJV7gsBvLum7LWeNSfeHdPmF Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'FVXgJ86erBw5GAMeAw1CnYXwQn48BFAEAhRyHPUjbMQB'
5+
6+let b = base58'HRut8ESAGXxwvsKJky1V96qRtqyXQd4Apq4GY7TE5yGP'
7+
8+@Callable(c)
9+func usdN_stake () = if ((c.payments[0].assetId != a))
10+ then throw("unexpected asset")
11+ else {
12+ let d = valueOrElse(getInteger(this, toString(c.originCaller)), 0)
13+[IntegerEntry(toString(c.originCaller), (d + c.payments[0].amount))]
14+ }
15+
16+
17+
18+@Callable(c)
19+func usdN_cancelStake (e) = if ((getIntegerValue(this, toString(c.caller)) >= e))
20+ then [ScriptTransfer(c.caller, e, a)]
21+ else throw("too big amount")
22+
23+
24+
25+@Callable(c)
26+func usdC_stake () = if ((c.payments[0].assetId != b))
27+ then throw("unexpected asset")
28+ else {
29+ let d = valueOrElse(getInteger(this, toString(c.originCaller)), 0)
30+[IntegerEntry(toString(c.originCaller), (d + c.payments[0].amount))]
31+ }
32+
33+
34+
35+@Callable(c)
36+func usdC_cancelStake (e) = if ((getIntegerValue(this, toString(c.caller)) >= e))
37+ then [ScriptTransfer(c.caller, e, b)]
38+ else throw("too big amount")
39+
40+

github/deemru/w8io/026f985 
24.72 ms