tx · JD1XYdQBNzPFc11KUp5ey2kskimBWLRYkraZ3FRzLHR3 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.00400000 Waves 2023.11.10 11:04 [2836987] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "JD1XYdQBNzPFc11KUp5ey2kskimBWLRYkraZ3FRzLHR3", "fee": 400000, "feeAssetId": null, "timestamp": 1699603529353, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "2FfkV2DfxnfFVSCsnCNLprCdTU1mPiETgRtKtLR5B1dy12t9ZnFG1TYfnN1piM3kXjGabPoUk7hzRh9CQNh7spqZ" ], "script": "base64:BgIGCAISABIAEQENdHJ5R2V0SW50ZWdlcgIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAAHYnVybnh0bgEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQAA1BaMQEaAVeFnSww1fwDPmHFrd6Sv8UqkfOZrhpBQAoAA1BaMgEaAVf1RmgngA1o304mdXq0odMoMeAJv/V5eTcAA1BaMwEaAVdrUh3hZ11iM5xE9ppvCu7VVcjaIPzs5scAA1BaNAEaAVd8ufIkLHkd+cILYV2n5Ut+Pmb4MdnkIOIAA1BaNQEaAVdzM1uLVnknLEeNcZD2LCCz+T9Cl/2cRdIAA1BaNgEaAVdHHWb6sJRhaJYHMq62QOOh/3POTybYR7oAB1dYc3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yZXNzIHJlZ2lzdGVyZWQAAQQEbGlzdAkAtQkCBQlhZGRyZXNzZXMCASwECGxpc3RTaXplCQCQAwEFBGxpc3QEC2ZpcnN0T2ZMaXN0CQCRAwIFBGxpc3QAAAQKbGFzdE9mTGlzdAkAkQMCBQRsaXN0CQBlAgUIbGlzdFNpemUAAQQIYWRkcmVzczEJAQV2YWx1ZQEJAKYIAQULZmlyc3RPZkxpc3QECGJhbGFuY2UxCAkA7wcBBQhhZGRyZXNzMQlhdmFpbGFibGUJAMwIAgkBC1N0cmluZ0VudHJ5AgIJYWRkcmVzc2VzBQlhZGRyZXNzZXMJAMwIAgkBDEludGVnZXJFbnRyeQICCGxpc3RTaXplBQhsaXN0U2l6ZQkAzAgCCQELU3RyaW5nRW50cnkCAgtmaXJzdE9mTGlzdAULZmlyc3RPZkxpc3QJAMwIAgkBC1N0cmluZ0VudHJ5AgIKbGFzdE9mTGlzdAUKbGFzdE9mTGlzdAkAzAgCCQEMSW50ZWdlckVudHJ5AgIIYmFsYW5jZTEFCGJhbGFuY2UxBQNuaWwATb6X6Q==", "height": 2836987, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HgBAhsfCrhbVoMnnmrc9YSkXcbmctqBiKH4cMD4GgCcR Next: E7M9R9qmhBAPGh1Pb4msHu85YJPUkVfubrVdb5UVsxSb Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func tryGetInteger (key) = match getInteger( | |
4 | + | func tryGetInteger (address,key) = match getInteger(address, key) { | |
5 | 5 | case b: Int => | |
6 | 6 | b | |
7 | 7 | case _ => | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | - | func tryGetString (key) = match getString( | |
12 | + | func tryGetString (address,key) = match getString(address, key) { | |
13 | 13 | case b: String => | |
14 | 14 | b | |
15 | 15 | case _ => | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | + | let burnxtn = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
21 | + | ||
22 | + | let PZ1 = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
23 | + | ||
24 | + | let PZ2 = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
25 | + | ||
26 | + | let PZ3 = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
27 | + | ||
28 | + | let PZ4 = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
29 | + | ||
30 | + | let PZ5 = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
31 | + | ||
32 | + | let PZ6 = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
33 | + | ||
34 | + | let WXstake = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
35 | + | ||
36 | + | let WX1 = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
37 | + | ||
38 | + | let LP1 = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
39 | + | ||
40 | + | let WX2 = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
41 | + | ||
42 | + | let LP2 = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
43 | + | ||
44 | + | func PZbal (Pooladdress,address) = { | |
45 | + | let burnxtnInPZ = tryGetInteger(Address(Pooladdress), (("global_" + toBase58String(burnxtn)) + "_balance")) | |
46 | + | let addressStakePZ = tryGetInteger(Address(Pooladdress), (toString(address) + "_indexStaked")) | |
47 | + | let totalStakePZ = tryGetInteger(Address(Pooladdress), "global_poolToken_amount") | |
48 | + | fraction(burnxtnInPZ, addressStakePZ, totalStakePZ) | |
49 | + | } | |
50 | + | ||
51 | + | ||
52 | + | func WXbal (Pooladdress,address,LPstr) = { | |
53 | + | let burnxtnInWX = assetBalance(Address(Pooladdress), burnxtn) | |
54 | + | let addressStakeWX = tryGetInteger(Address(WXstake), ((("%s%s%s__staked__" + toString(address)) + "__") + LPstr)) | |
55 | + | let totalStakeWX = tryGetInteger(Address(Pooladdress), ("%s%s%s__staked__total__" + LPstr)) | |
56 | + | fraction(burnxtnInWX, addressStakeWX, totalStakeWX) | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | func totalBalance (address) = { | |
61 | + | let burnxtnBalance = assetBalance(address, burnxtn) | |
62 | + | let PZ1balance = PZbal(PZ1, address) | |
63 | + | let PZ2balance = PZbal(PZ2, address) | |
64 | + | let PZ3balance = PZbal(PZ3, address) | |
65 | + | let PZ4balance = PZbal(PZ4, address) | |
66 | + | let PZ5balance = PZbal(PZ5, address) | |
67 | + | let PZ6balance = PZbal(PZ6, address) | |
68 | + | let WX1balance = WXbal(WX1, address, LP1) | |
69 | + | let WX2balance = WXbal(WX2, address, LP2) | |
70 | + | let total = ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
71 | + | [IntegerEntry("burnxtnBalance", burnxtnBalance), IntegerEntry("PZ1balance", PZ1balance), IntegerEntry("PZ2balance", PZ2balance), IntegerEntry("PZ3balance", PZ3balance), IntegerEntry("PZ4balance", PZ4balance), IntegerEntry("PZ5balance", PZ5balance), IntegerEntry("PZ6balance", PZ6balance), IntegerEntry("WX1balance", WX1balance), IntegerEntry("WX2balance", WX2balance), IntegerEntry("total", total)] | |
72 | + | } | |
73 | + | ||
74 | + | ||
20 | 75 | @Callable(i) | |
21 | - | func register () = [IntegerEntry("Amount Registered", (tryGetInteger("Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger("Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString("Address registered") + toString(i.caller)) + ","))] | |
76 | + | func register () = if (contains(tryGetString(this, "Address registered"), toString(i.caller))) | |
77 | + | then throw("already registered") | |
78 | + | else if ((height > 1)) | |
79 | + | then throw("registration closed") | |
80 | + | else [IntegerEntry("Amount Registered", (tryGetInteger(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger(this, "Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString(this, "Address registered") + toString(i.caller)) + ","))] | |
22 | 81 | ||
23 | 82 | ||
24 | 83 | ||
25 | 84 | @Callable(i) | |
26 | 85 | func makeList () = { | |
27 | - | let addresses = dropRight(tryGetString("Address registered"), 1) | |
86 | + | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
28 | 87 | let list = split(addresses, ",") | |
29 | 88 | let listSize = size(list) | |
30 | 89 | let firstOfList = list[0] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func tryGetInteger (key) = match getInteger( | |
4 | + | func tryGetInteger (address,key) = match getInteger(address, key) { | |
5 | 5 | case b: Int => | |
6 | 6 | b | |
7 | 7 | case _ => | |
8 | 8 | 0 | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | - | func tryGetString (key) = match getString( | |
12 | + | func tryGetString (address,key) = match getString(address, key) { | |
13 | 13 | case b: String => | |
14 | 14 | b | |
15 | 15 | case _ => | |
16 | 16 | "" | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | + | let burnxtn = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
21 | + | ||
22 | + | let PZ1 = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
23 | + | ||
24 | + | let PZ2 = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
25 | + | ||
26 | + | let PZ3 = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
27 | + | ||
28 | + | let PZ4 = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
29 | + | ||
30 | + | let PZ5 = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
31 | + | ||
32 | + | let PZ6 = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
33 | + | ||
34 | + | let WXstake = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
35 | + | ||
36 | + | let WX1 = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
37 | + | ||
38 | + | let LP1 = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
39 | + | ||
40 | + | let WX2 = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
41 | + | ||
42 | + | let LP2 = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
43 | + | ||
44 | + | func PZbal (Pooladdress,address) = { | |
45 | + | let burnxtnInPZ = tryGetInteger(Address(Pooladdress), (("global_" + toBase58String(burnxtn)) + "_balance")) | |
46 | + | let addressStakePZ = tryGetInteger(Address(Pooladdress), (toString(address) + "_indexStaked")) | |
47 | + | let totalStakePZ = tryGetInteger(Address(Pooladdress), "global_poolToken_amount") | |
48 | + | fraction(burnxtnInPZ, addressStakePZ, totalStakePZ) | |
49 | + | } | |
50 | + | ||
51 | + | ||
52 | + | func WXbal (Pooladdress,address,LPstr) = { | |
53 | + | let burnxtnInWX = assetBalance(Address(Pooladdress), burnxtn) | |
54 | + | let addressStakeWX = tryGetInteger(Address(WXstake), ((("%s%s%s__staked__" + toString(address)) + "__") + LPstr)) | |
55 | + | let totalStakeWX = tryGetInteger(Address(Pooladdress), ("%s%s%s__staked__total__" + LPstr)) | |
56 | + | fraction(burnxtnInWX, addressStakeWX, totalStakeWX) | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | func totalBalance (address) = { | |
61 | + | let burnxtnBalance = assetBalance(address, burnxtn) | |
62 | + | let PZ1balance = PZbal(PZ1, address) | |
63 | + | let PZ2balance = PZbal(PZ2, address) | |
64 | + | let PZ3balance = PZbal(PZ3, address) | |
65 | + | let PZ4balance = PZbal(PZ4, address) | |
66 | + | let PZ5balance = PZbal(PZ5, address) | |
67 | + | let PZ6balance = PZbal(PZ6, address) | |
68 | + | let WX1balance = WXbal(WX1, address, LP1) | |
69 | + | let WX2balance = WXbal(WX2, address, LP2) | |
70 | + | let total = ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
71 | + | [IntegerEntry("burnxtnBalance", burnxtnBalance), IntegerEntry("PZ1balance", PZ1balance), IntegerEntry("PZ2balance", PZ2balance), IntegerEntry("PZ3balance", PZ3balance), IntegerEntry("PZ4balance", PZ4balance), IntegerEntry("PZ5balance", PZ5balance), IntegerEntry("PZ6balance", PZ6balance), IntegerEntry("WX1balance", WX1balance), IntegerEntry("WX2balance", WX2balance), IntegerEntry("total", total)] | |
72 | + | } | |
73 | + | ||
74 | + | ||
20 | 75 | @Callable(i) | |
21 | - | func register () = [IntegerEntry("Amount Registered", (tryGetInteger("Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger("Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString("Address registered") + toString(i.caller)) + ","))] | |
76 | + | func register () = if (contains(tryGetString(this, "Address registered"), toString(i.caller))) | |
77 | + | then throw("already registered") | |
78 | + | else if ((height > 1)) | |
79 | + | then throw("registration closed") | |
80 | + | else [IntegerEntry("Amount Registered", (tryGetInteger(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger(this, "Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString(this, "Address registered") + toString(i.caller)) + ","))] | |
22 | 81 | ||
23 | 82 | ||
24 | 83 | ||
25 | 84 | @Callable(i) | |
26 | 85 | func makeList () = { | |
27 | - | let addresses = dropRight(tryGetString("Address registered"), 1) | |
86 | + | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
28 | 87 | let list = split(addresses, ",") | |
29 | 88 | let listSize = size(list) | |
30 | 89 | let firstOfList = list[0] | |
31 | 90 | let lastOfList = list[(listSize - 1)] | |
32 | 91 | let address1 = value(addressFromString(firstOfList)) | |
33 | 92 | let balance1 = wavesBalance(address1).available | |
34 | 93 | [StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList), IntegerEntry("balance1", balance1)] | |
35 | 94 | } | |
36 | 95 | ||
37 | 96 |
github/deemru/w8io/169f3d6 35.56 ms ◑