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+gLp7N2ofv42AAAAAABHVzZEMBAAAAIPQcuTcYg4l4Uh6IaJaLWyiuNgmUbeQfgPZEel3eCXgMAAAABAAAAAFpAQAAAAp1c2ROX3N0YWtlAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVzZE4JAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAAQY3VycmVudExpcXVpZGl0eQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFpAAAADG9yaWdpbkNhbGxlcgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkABCUAAAABCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIJAABkAAAAAgUAAAAQY3VycmVudExpcXVpZGl0eQgJAA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NmZXIAAAADCAUAAAABaQAAAAxvcmlnaW5DYWxsZXIFAAAABmFtb3VudAUAAAAEdXNkQwUAAAADbmlsCQAAAgAAAAECAAAADnRvbyBiaWcgYW1vdW50AAAAAInKjNw=",
"height": 2203343,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4jJukCVwFuVQSdn7GHjdg6chkXogS7bvrgdndVuQgJRp
Next: Dqf4N925hWDVBJfm7van6x6mcSn6Ps2dCQjtm3mUWP94
Diff:
Old | New | | Differences |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @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)] |
---|
21 | 21 | | else throw("too big amount") |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @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)] |
---|
38 | 38 | | else throw("too big amount") |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let usdN = base58'FVXgJ86erBw5GAMeAw1CnYXwQn48BFAEAhRyHPUjbMQB' |
---|
5 | 5 | | |
---|
6 | 6 | | let usdC = base58'HRut8ESAGXxwvsKJky1V96qRtqyXQd4Apq4GY7TE5yGP' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func usdN_stake () = if ((i.payments[0].assetId != usdN)) |
---|
10 | 10 | | then throw("unexpected asset") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0) |
---|
13 | 13 | | [IntegerEntry(toString(i.originCaller), (currentLiquidity + i.payments[0].amount))] |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @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)] |
---|
21 | 21 | | else throw("too big amount") |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Callable(i) |
---|
26 | 26 | | func usdC_stake () = if ((i.payments[0].assetId != usdC)) |
---|
27 | 27 | | then throw("unexpected asset") |
---|
28 | 28 | | else { |
---|
29 | 29 | | let currentLiquidity = valueOrElse(getInteger(this, toString(i.originCaller)), 0) |
---|
30 | 30 | | [IntegerEntry(toString(i.originCaller), (currentLiquidity + i.payments[0].amount))] |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @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)] |
---|
38 | 38 | | else throw("too big amount") |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|