tx · FharT9PjBWzg1BiAB8tAwhCaC3m7zxncqZ8imNHFU34v

3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp:  -0.01400000 Waves

2021.05.13 12:47 [1523735] smart account 3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp > SELF 0.00000000 Waves

{ "type": 13, "id": "FharT9PjBWzg1BiAB8tAwhCaC3m7zxncqZ8imNHFU34v", "fee": 1400000, "feeAssetId": null, "timestamp": 1620899317971, "version": 2, "chainId": 84, "sender": "3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp", "senderPublicKey": "ECgJ5aXMvEomM6yWA4tsqXdM3az7ddLr4cLr3yNJwJUb", "proofs": [ "BYbjvtnkJTx59p51R5jJXg6rg7nmzuXtY2dmk4amo1k1ccikpFSxXHeBM9pCePTFSYby4dA9AxeDwNuzW6H444V" ], "script": "base64:AAIEAAAAAAAAADMIAhIDCgEIEgUKAwgBCBIGCgQIAQEIEggKBggBAQEICBIRCg8ICAgIAQgBCAEIAQgBCAEAAAABAQAAAAdjdXJyZW50AAAAAQAAAAFpBAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAIAAAAFV0FWRVMAAAAFAAAAAWkBAAAAFXJhbmtpbmdTcG9uc29yRGVwb3NpdAAAAAEAAAAObW9udGhUaW1lc3RhbXAEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAJY3VycmVudElkCQEAAAAHY3VycmVudAAAAAEFAAAAAWkEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGl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cHRUcmFuc2ZlcgAAAAMFAAAAD25lYXJwaW4xYWRkcmVzcwUAAAAObmVhcnBpbjFhbW91bnQFAAAADmN1cnJlbnRBc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAD25lYXJwaW4yYWRkcmVzcwUAAAAObmVhcnBpbjJhbW91bnQFAAAADmN1cnJlbnRBc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQJayjY=", "height": 1523735, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F3vaB8tUCLLPYUdKX7ScVBfXFVMLb9TJ1VGzGiQXyHZW Next: BATTZ59GaiXtJc1DcH9SQ7z7wcMQ2jw8Kgro5XJVSAcW Diff:
OldNewDifferences
1414 let pmt = i.payments[0]
1515 let currentId = current(i)
1616 let currentKey = toBase58String(i.caller.bytes)
17- let currentAmount = match getInteger(this, ((((("ranking_sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp)) {
17+ let currentAmount = match getInteger(this, ((((("ranking-sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp)) {
1818 case a: Int =>
1919 a
2020 case _ =>
2121 0
2222 }
2323 let newAmount = (currentAmount + pmt.amount)
24- let rankingCurrentAmount = match getInteger(this, ((("ranking_sponsor_" + currentId) + "_") + monthTimestamp)) {
24+ let rankingCurrentAmount = match getInteger(this, ((("ranking-sponsor_" + currentId) + "_") + monthTimestamp)) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
3030 let rankingNewAmount = (rankingCurrentAmount + pmt.amount)
31-[IntegerEntry(((((("ranking_sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking_sponsor_" + currentId) + "_") + monthTimestamp), rankingNewAmount)]
31+[IntegerEntry(((((("ranking-sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking-sponsor_" + currentId) + "_") + monthTimestamp), rankingNewAmount)]
3232 }
3333
3434
3737 func rankingSponsorWithdraw (monthTimestamp,amount,assetId) = {
3838 let currentKey = toBase58String(i.caller.bytes)
3939 let currentAssetId = fromBase58String(assetId)
40- let currentAmount = match getInteger(this, ((((("ranking_sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp)) {
40+ let currentAmount = match getInteger(this, ((((("ranking-sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp)) {
4141 case a: Int =>
4242 a
4343 case _ =>
4444 0
4545 }
4646 let newAmount = (currentAmount - amount)
47- let currentRankingAmount = match getInteger(this, ((("ranking_sponsor_" + assetId) + "_") + monthTimestamp)) {
47+ let currentRankingAmount = match getInteger(this, ((("ranking-sponsor_" + assetId) + "_") + monthTimestamp)) {
4848 case a: Int =>
4949 a
5050 case _ =>
5757 then throw("Not enough sponsord balance")
5858 else if ((0 > rankingNewAmount))
5959 then throw("Not enough total bounty balance")
60- else [IntegerEntry(((((("ranking_sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking_sponsor_" + assetId) + "_") + monthTimestamp), rankingNewAmount), ScriptTransfer(i.caller, amount, currentAssetId)]
60+ else [IntegerEntry(((((("ranking-sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking-sponsor_" + assetId) + "_") + monthTimestamp), rankingNewAmount), ScriptTransfer(i.caller, amount, currentAssetId)]
6161 }
6262
6363
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func current (i) = {
55 let pmt = i.payments[0]
66 if (isDefined(pmt.assetId))
77 then toBase58String(value(pmt.assetId))
88 else "WAVES"
99 }
1010
1111
1212 @Callable(i)
1313 func rankingSponsorDeposit (monthTimestamp) = {
1414 let pmt = i.payments[0]
1515 let currentId = current(i)
1616 let currentKey = toBase58String(i.caller.bytes)
17- let currentAmount = match getInteger(this, ((((("ranking_sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp)) {
17+ let currentAmount = match getInteger(this, ((((("ranking-sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp)) {
1818 case a: Int =>
1919 a
2020 case _ =>
2121 0
2222 }
2323 let newAmount = (currentAmount + pmt.amount)
24- let rankingCurrentAmount = match getInteger(this, ((("ranking_sponsor_" + currentId) + "_") + monthTimestamp)) {
24+ let rankingCurrentAmount = match getInteger(this, ((("ranking-sponsor_" + currentId) + "_") + monthTimestamp)) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
3030 let rankingNewAmount = (rankingCurrentAmount + pmt.amount)
31-[IntegerEntry(((((("ranking_sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking_sponsor_" + currentId) + "_") + monthTimestamp), rankingNewAmount)]
31+[IntegerEntry(((((("ranking-sponsor_" + currentKey) + "_") + currentId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking-sponsor_" + currentId) + "_") + monthTimestamp), rankingNewAmount)]
3232 }
3333
3434
3535
3636 @Callable(i)
3737 func rankingSponsorWithdraw (monthTimestamp,amount,assetId) = {
3838 let currentKey = toBase58String(i.caller.bytes)
3939 let currentAssetId = fromBase58String(assetId)
40- let currentAmount = match getInteger(this, ((((("ranking_sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp)) {
40+ let currentAmount = match getInteger(this, ((((("ranking-sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp)) {
4141 case a: Int =>
4242 a
4343 case _ =>
4444 0
4545 }
4646 let newAmount = (currentAmount - amount)
47- let currentRankingAmount = match getInteger(this, ((("ranking_sponsor_" + assetId) + "_") + monthTimestamp)) {
47+ let currentRankingAmount = match getInteger(this, ((("ranking-sponsor_" + assetId) + "_") + monthTimestamp)) {
4848 case a: Int =>
4949 a
5050 case _ =>
5151 0
5252 }
5353 let rankingNewAmount = (currentRankingAmount - amount)
5454 if ((0 > amount))
5555 then throw("Can't withdraw negative amount")
5656 else if ((0 > newAmount))
5757 then throw("Not enough sponsord balance")
5858 else if ((0 > rankingNewAmount))
5959 then throw("Not enough total bounty balance")
60- else [IntegerEntry(((((("ranking_sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking_sponsor_" + assetId) + "_") + monthTimestamp), rankingNewAmount), ScriptTransfer(i.caller, amount, currentAssetId)]
60+ else [IntegerEntry(((((("ranking-sponsor_" + currentKey) + "_") + assetId) + "_") + monthTimestamp), newAmount), IntegerEntry(((("ranking-sponsor_" + assetId) + "_") + monthTimestamp), rankingNewAmount), ScriptTransfer(i.caller, amount, currentAssetId)]
6161 }
6262
6363
6464
6565 @Callable(i)
6666 func sponsorDeposit (compeNumber,compeEndTimestamp,timestamp,compeAddress) = {
6767 let pmt = i.payments[0]
6868 let currentId = current(i)
6969 if ((timestamp > compeEndTimestamp))
7070 then throw("Competition is finished")
7171 else {
7272 let currentKey = toBase58String(i.caller.bytes)
7373 let currentAmount = match getInteger(this, ((((("sponsor_" + currentKey) + "_") + currentId) + "_") + compeNumber)) {
7474 case a: Int =>
7575 a
7676 case _ =>
7777 0
7878 }
7979 let newAmount = (currentAmount + pmt.amount)
8080 let compeCurrentAmount = match getInteger(this, ((((compeNumber + "_") + compeAddress) + "_") + currentId)) {
8181 case a: Int =>
8282 a
8383 case _ =>
8484 0
8585 }
8686 let compeNewAmount = (compeCurrentAmount + pmt.amount)
8787 [IntegerEntry(((((("sponsor_" + currentKey) + "_") + currentId) + "_") + compeNumber), newAmount), IntegerEntry(((((compeNumber + "_") + compeAddress) + "_") + currentId), compeNewAmount)]
8888 }
8989 }
9090
9191
9292
9393 @Callable(i)
9494 func sponsorWithdraw (compeNumber,compeEndTimestamp,timestamp,amount,assetId,compeAddress) = {
9595 let currentKey = toBase58String(i.caller.bytes)
9696 let currentAssetId = fromBase58String(assetId)
9797 let currentAmount = match getInteger(this, ((((("sponsor_" + currentKey) + "_") + assetId) + "_") + compeNumber)) {
9898 case a: Int =>
9999 a
100100 case _ =>
101101 0
102102 }
103103 let newAmount = (currentAmount - amount)
104104 let compeCurrentAmount = match getInteger(this, ((((compeNumber + "_") + compeAddress) + "_") + assetId)) {
105105 case a: Int =>
106106 a
107107 case _ =>
108108 0
109109 }
110110 let compeNewAmount = (compeCurrentAmount - amount)
111111 if ((timestamp > compeEndTimestamp))
112112 then throw("Competition is finished")
113113 else if ((0 > amount))
114114 then throw("Can't withdraw negative amount")
115115 else if ((0 > newAmount))
116116 then throw("Not enough balance")
117117 else if ((0 > compeNewAmount))
118118 then throw("Can't withdraw negative bounty amount")
119119 else [IntegerEntry(((((("sponsor_" + currentKey) + "_") + assetId) + "_") + compeNumber), newAmount), IntegerEntry(((((compeNumber + "_") + compeAddress) + "_") + assetId), compeNewAmount), ScriptTransfer(i.caller, amount, currentAssetId)]
120120 }
121121
122122
123123
124124 @Callable(i)
125125 func sponsorDistribution (compeNumber,assetId,compeAddress,net1,net1percent,net2,net2percent,net3,net3percent,booby,boobypercent,nearpin1,nearpin1percent,nearpin2,nearpin2percent) = {
126126 let currentAssetId = fromBase58String(assetId)
127127 let compeCurrentAmount = match getInteger(this, ((((compeNumber + "_") + compeAddress) + "_") + assetId)) {
128128 case a: Int =>
129129 a
130130 case _ =>
131131 0
132132 }
133133 let net1address = addressFromStringValue(net1)
134134 let net1amount = (compeCurrentAmount * (net1percent / 100))
135135 let net2address = addressFromStringValue(net2)
136136 let net2amount = (compeCurrentAmount * (net2percent / 100))
137137 let net3address = addressFromStringValue(net3)
138138 let net3amount = (compeCurrentAmount * (net3percent / 100))
139139 let boobyaddress = addressFromStringValue(booby)
140140 let boobyamount = (compeCurrentAmount * (boobypercent / 100))
141141 let nearpin1address = addressFromStringValue(nearpin1)
142142 let nearpin1amount = (compeCurrentAmount * (nearpin1percent / 100))
143143 let nearpin2address = addressFromStringValue(nearpin2)
144144 let nearpin2amount = (compeCurrentAmount * (nearpin2percent / 100))
145145 if ((compeCurrentAmount == 0))
146146 then throw("Can't distribution negative amount")
147147 else [IntegerEntry(((((compeNumber + "_") + compeAddress) + "_") + assetId), 0), ScriptTransfer(net1address, net1amount, currentAssetId), ScriptTransfer(net2address, net2amount, currentAssetId), ScriptTransfer(net3address, net3amount, currentAssetId), ScriptTransfer(boobyaddress, boobyamount, currentAssetId), ScriptTransfer(nearpin1address, nearpin1amount, currentAssetId), ScriptTransfer(nearpin2address, nearpin2amount, currentAssetId)]
148148 }
149149
150150
151151 @Verifier(tx)
152152 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
153153

github/deemru/w8io/169f3d6 
41.24 ms