tx · 4r1Dw5QmndPQHpoPriBusEBLq6ym3DVWt5ga2sis6Yfz

3NARiFNYCYgTs1f5q1TCBGnw4y9nhWQe2u6:  -0.00200000 Waves

2022.09.11 20:12 [2224722] smart account 3NARiFNYCYgTs1f5q1TCBGnw4y9nhWQe2u6 > SELF 0.00000000 Waves

{ "type": 13, "id": "4r1Dw5QmndPQHpoPriBusEBLq6ym3DVWt5ga2sis6Yfz", "fee": 200000, "feeAssetId": null, "timestamp": 1662916372824, "version": 2, "chainId": 84, "sender": "3NARiFNYCYgTs1f5q1TCBGnw4y9nhWQe2u6", "senderPublicKey": "287rNEUfCRs13y7bsxu8AHfGF7FsQLaGbtdhgEWteJXg", "proofs": [ "63NDH5otaUiRZCUgJGmgTQtNboAg7VAmJAjpCRasgd3m8YEimDKp4VdBZRMEewanwE63XjxXa6Lw6BuqAPyfb3MC" ], "script": "base64:AAIFAAAAAAAAABAIAhIAEgMKAQESABIDCgEBAAAAAgAAAAAEdXNkTgEAAAAg11KRGPRfT6VehNuJvBkobHB7OMalzc+gLp7N2ofv42AAAAAABHVzZEMBAAAAIPQcuTcYg4l4Uh6IaJaLWyiuNgmUbeQfgPZEel3eCXgMAAAABAAAAAFpAQAAAAp1c2ROX3N0YWtlAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVzZE4JAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAAQY3VycmVudExpcXVpZGl0eQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkABCUAAAABCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIJAABkAAAAAgUAAAAQY3VycmVudExpcXVpZGl0eQgJAAGRAAAAAggFAAA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AAAABaQAAAAxvcmlnaW5DYWxsZXIFAAAABmFtb3VudAUAAAAEdXNkQwUAAAADbmlsCQAAAgAAAAECAAAADnRvbyBiaWcgYW1vdW50AAAAAInKjNw=", "height": 2224722, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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.originCaller)) >= e))
20+ then [ScriptTransfer(c.originCaller, 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.originCaller)) >= e))
37+ then [ScriptTransfer(c.originCaller, e, b)]
38+ else throw("too big amount")
39+
40+

github/deemru/w8io/026f985 
32.23 ms