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+gLp7N2ofv42AAAAAABHVzZEMBAAAAIPQcuTcYg4l4Uh6IaJaLWyiuNgmUbeQfgPZEel3eCXgMAAAABAAAAAFpAQAAAAp1c2ROX3N0YWtlAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVzZE4JAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAAQY3VycmVudExpcXVpZGl0eQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkABCUAAAABCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIJAABkAAAAAgUAAAAQY3VycmVudExpcXVpZGl0eQgJAAGRAAAAAggFAAAA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AAABaQAAAAxvcmlnaW5DYWxsZXIFAAAABmFtb3VudAUAAAAEdXNkQwUAAAADbmlsCQAAAgAAAAECAAAADnRvbyBiaWcgYW1vdW50AAAAAInKjNw=", "height": 2224722, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let usdN = base58'FVXgJ86erBw5GAMeAw1CnYXwQn48BFAEAhRyHPUjbMQB' | |
5 | + | ||
6 | + | let usdC = base58'HRut8ESAGXxwvsKJky1V96qRtqyXQd4Apq4GY7TE5yGP' | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func usdN_stake () = if ((i.payments[0].assetId != usdN)) | |
10 | + | then throw("unexpected asset") | |
11 | + | else { | |
12 | + | let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0) | |
13 | + | [IntegerEntry(toString(i.originCaller), (currentLiquidity + i.payments[0].amount))] | |
14 | + | } | |
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | @Callable(i) | |
19 | + | func usdN_cancelStake (amount) = if ((getIntegerValue(this, toString(i.originCaller)) >= amount)) | |
20 | + | then [ScriptTransfer(i.originCaller, amount, usdN)] | |
21 | + | else throw("too big amount") | |
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | @Callable(i) | |
26 | + | func usdC_stake () = if ((i.payments[0].assetId != usdC)) | |
27 | + | then throw("unexpected asset") | |
28 | + | else { | |
29 | + | let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0) | |
30 | + | [IntegerEntry(toString(i.originCaller), (currentLiquidity + i.payments[0].amount))] | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(i) | |
36 | + | func usdC_cancelStake (amount) = if ((getIntegerValue(this, toString(i.originCaller)) >= amount)) | |
37 | + | then [ScriptTransfer(i.originCaller, amount, usdC)] | |
38 | + | else throw("too big amount") | |
39 | + | ||
40 | + |
github/deemru/w8io/026f985 16.78 ms ◑