tx · DAijscLWRz9y3XpuzTyYKeeKjLytuYmYfpQiuUPN1arY

3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc:  -0.05000000 Waves

2019.12.19 09:11 [815410] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves

{ "type": 13, "id": "DAijscLWRz9y3XpuzTyYKeeKjLytuYmYfpQiuUPN1arY", "fee": 5000000, "feeAssetId": null, "timestamp": 1576735981291, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "5dyjZ8w2Ea5bSxZEvG8qCXqsfgQAZ846oMeNP8HHcBCeb8PPAsADVJNVd6w3XEmB2tAh8sLVhLDJW1v7TCBFjS3e" ], "script": "base64:AAIDAAAAAAAAABMIARIAEgMKAQgSAwoBCBIDCgEIAAAADwAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAAARXQkVUAQAAACCGtDaoeNMOzNjwF61LLiwEHwefusq5FqlK128lrZvQdgAAAAAFUk9ZQUwBAAAAIEPpioLCJdl0nJV8IFJJxqOakLK2lV9iYl7KOImJDGkcAAAAAA9DT01NVU5JVFlXQUxMRVQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSokXbrXNtTilt+wsoFPXwsICOsMTcOEwMAAAAACldCRVRMT0NLRUQAAAAAAAAAAAAAAAAAC1JPWUFMTE9DS0VEAAAAAAAAAAABAAAAAAxXQkVUV0lUSERSQVcAAAAAAAAAAAIAAAAADVJPWUFMV0lUSERSQVcAAAAAAAAAAAMAAAAADVdBVkVTV0lUSERSQVcAAAAAAAAAAAQBAAAAFkV4dHJhY3RXQkVUUmVzZXJ2ZWRBbXQAAAAABAAAAAckbWF0Y2gwCQAE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kAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAMJAAAAAAAAAggFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAObmV3V2F2ZXNBbW91bnQJAABkAAAAAgkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZ3YWxsZXQJAQAAABNGb3JtYXRQbGF5ZXJCYWxhbmNlAAAABQkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAApXQkVUTE9DS0VECQABkQAAAAIFAAAAB2JhbGFuY2UFAAAAC1JPWUFMTE9DS0VECQABkQAAAAIFAAAAB2JhbGFuY2UFAAAADFdCRVRXSVRIRFJBVwkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1ST1lBTFdJVEhEUkFXBQAAAA5uZXdXYXZlc0Ftb3VudAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwJAAACAAAAAQIAAAANSW52YWxpZCBhc3NldAkAAAIAAAABAgAAADRZb3UgZG8gbm90IGhhdmUgcGVybWlzc2lvbiB0byBwZXJmb3JtIHRoaXMgZnVuY3Rpb24uAAAAAJLWu0I=", "chainId": 84, "height": 815410, "spentComplexity": 0 } View: original | compacted Prev: FfBE2MCUnoFPqg9YDcYyK5UQDGRriN2CBUDBveq1Rd7G Next: 4A9xrrFaADHuZbAQV16QFgd9tEMJhGkMhfBB6g3DXS6N Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let WBETRESERVATIONKEY = "$WBET_RESERVED_AMOUNT"
4+let LOCKEDWBETKEY = "$WBET_LOCKED_AMOUNT"
55
6-let ROYALRESERVATIONKEY = "$ROYAL_RESERVED_AMOUNT"
6+let LOCKEDROYALKEY = "$ROYAL_LOCKER_AMOUNT"
77
88 let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
99
2121
2222 let WAVESWITHDRAW = 4
2323
24-func ExtractWBETReservedAmt () = match getInteger(this, WBETRESERVATIONKEY) {
24+func ExtractWBETReservedAmt () = match getInteger(this, LOCKEDWBETKEY) {
2525 case a: Int =>
2626 a
2727 case _ =>
2929 }
3030
3131
32-func ExtractROYALReservedAmt () = match getInteger(this, ROYALRESERVATIONKEY) {
32+func ExtractROYALReservedAmt () = match getInteger(this, LOCKEDROYALKEY) {
3333 case a: Int =>
3434 a
3535 case _ =>
7373 then {
7474 let newWBETReservedAmount = (ExtractWBETReservedAmt() + payment.amount)
7575 let newPlayerWBETAmount = (balance[WBETLOCKED] + payment.amount)
76- ScriptResult(WriteSet([DataEntry(WBETRESERVATIONKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
76+ ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
7777 }
7878 else if ((payment.assetId == ROYAL))
7979 then {
8080 let newROYALReservedAmount = (ExtractROYALReservedAmt() + payment.amount)
8181 let newPlayerRoyalAmount = (balance[ROYALLOCKED] + payment.amount)
82- ScriptResult(WriteSet([DataEntry(ROYALRESERVATIONKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
82+ ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
8383 }
8484 else throw("error")
8585 }
9696 then throw("You dont have enough balance to withdraw the amount requested.")
9797 else {
9898 let newWBETReservedAmount = (ExtractWBETReservedAmt() - balance[WBETLOCKED])
99- ScriptResult(WriteSet([DataEntry(WBETRESERVATIONKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)]))
99+ ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)]))
100100 }
101101 else if ((asset == "ROYAL"))
102102 then if ((0 >= balance[ROYALLOCKED]))
103103 then throw("You dont have enough balance to withdraw the amount requested.")
104104 else {
105105 let newROYALReservedAmount = (ExtractROYALReservedAmt() - balance[ROYALLOCKED])
106- ScriptResult(WriteSet([DataEntry(ROYALRESERVATIONKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)]))
106+ ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)]))
107107 }
108108 else throw("Invalid asset")
109109 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let WBETRESERVATIONKEY = "$WBET_RESERVED_AMOUNT"
4+let LOCKEDWBETKEY = "$WBET_LOCKED_AMOUNT"
55
6-let ROYALRESERVATIONKEY = "$ROYAL_RESERVED_AMOUNT"
6+let LOCKEDROYALKEY = "$ROYAL_LOCKER_AMOUNT"
77
88 let WBET = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
99
1010 let ROYAL = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy'
1111
1212 let COMMUNITYWALLET = Address(base58'3N5HPZCbRfvh1NcELNrM13BXo5kT8TLyuyL')
1313
1414 let WBETLOCKED = 0
1515
1616 let ROYALLOCKED = 1
1717
1818 let WBETWITHDRAW = 2
1919
2020 let ROYALWITHDRAW = 3
2121
2222 let WAVESWITHDRAW = 4
2323
24-func ExtractWBETReservedAmt () = match getInteger(this, WBETRESERVATIONKEY) {
24+func ExtractWBETReservedAmt () = match getInteger(this, LOCKEDWBETKEY) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
3030
3131
32-func ExtractROYALReservedAmt () = match getInteger(this, ROYALRESERVATIONKEY) {
32+func ExtractROYALReservedAmt () = match getInteger(this, LOCKEDROYALKEY) {
3333 case a: Int =>
3434 a
3535 case _ =>
3636 0
3737 }
3838
3939
4040 func ExtractPlayerAmt (wallet) = match getString(this, wallet) {
4141 case str: String =>
4242 str
4343 case _ =>
4444 "0_0_0_0_0"
4545 }
4646
4747
4848 func FormatPlayerBalance (wbet,royal,wbetWithdraw,royalWithdraw,wavesWithdraw) = ((((((((toString(wbet) + "_") + toString(royal)) + "_") + toString(wbetWithdraw)) + "_") + toString(royalWithdraw)) + "_") + toString(wavesWithdraw))
4949
5050
5151 func ParsePlayerBalance (wallet) = {
5252 let amounts = split(ExtractPlayerAmt(wallet), "_")
5353 let wbetAmount = parseIntValue(amounts[WBETLOCKED])
5454 let royalAmount = parseIntValue(amounts[ROYALLOCKED])
5555 let wbetWithdraw = parseIntValue(amounts[WBETWITHDRAW])
5656 let royalWithdraw = parseIntValue(amounts[ROYALWITHDRAW])
5757 let wavesWithdraw = parseIntValue(amounts[WAVESWITHDRAW])
5858 [wbetAmount, royalAmount, wbetWithdraw, royalWithdraw, wavesWithdraw]
5959 }
6060
6161
6262 @Callable(i)
6363 func lock () = {
6464 let payment = extract(i.payment)
6565 if (if ((payment.assetId != WBET))
6666 then (payment.assetId != ROYAL)
6767 else false)
6868 then throw("The token should be in WBET or ROYAL.")
6969 else {
7070 let wallet = toString(i.caller)
7171 let balance = ParsePlayerBalance(wallet)
7272 if ((payment.assetId == WBET))
7373 then {
7474 let newWBETReservedAmount = (ExtractWBETReservedAmt() + payment.amount)
7575 let newPlayerWBETAmount = (balance[WBETLOCKED] + payment.amount)
76- ScriptResult(WriteSet([DataEntry(WBETRESERVATIONKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
76+ ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(newPlayerWBETAmount, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
7777 }
7878 else if ((payment.assetId == ROYAL))
7979 then {
8080 let newROYALReservedAmount = (ExtractROYALReservedAmt() + payment.amount)
8181 let newPlayerRoyalAmount = (balance[ROYALLOCKED] + payment.amount)
82- ScriptResult(WriteSet([DataEntry(ROYALRESERVATIONKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
82+ ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], newPlayerRoyalAmount, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
8383 }
8484 else throw("error")
8585 }
8686 }
8787
8888
8989
9090 @Callable(i)
9191 func unlock (asset) = {
9292 let wallet = toString(i.caller)
9393 let balance = ParsePlayerBalance(wallet)
9494 if ((asset == "WBET"))
9595 then if ((0 >= balance[WBETLOCKED]))
9696 then throw("You dont have enough balance to withdraw the amount requested.")
9797 else {
9898 let newWBETReservedAmount = (ExtractWBETReservedAmt() - balance[WBETLOCKED])
99- ScriptResult(WriteSet([DataEntry(WBETRESERVATIONKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)]))
99+ ScriptResult(WriteSet([DataEntry(LOCKEDWBETKEY, newWBETReservedAmount), DataEntry(wallet, FormatPlayerBalance(0, balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETLOCKED], WBET)]))
100100 }
101101 else if ((asset == "ROYAL"))
102102 then if ((0 >= balance[ROYALLOCKED]))
103103 then throw("You dont have enough balance to withdraw the amount requested.")
104104 else {
105105 let newROYALReservedAmount = (ExtractROYALReservedAmt() - balance[ROYALLOCKED])
106- ScriptResult(WriteSet([DataEntry(ROYALRESERVATIONKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)]))
106+ ScriptResult(WriteSet([DataEntry(LOCKEDROYALKEY, newROYALReservedAmount), DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], 0, balance[WBETWITHDRAW], balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALLOCKED], ROYAL)]))
107107 }
108108 else throw("Invalid asset")
109109 }
110110
111111
112112
113113 @Callable(i)
114114 func withdraw (asset) = {
115115 let wallet = toString(i.caller)
116116 let balance = ParsePlayerBalance(wallet)
117117 if ((asset == "WBET"))
118118 then if ((0 >= balance[WBETWITHDRAW]))
119119 then throw("You dont have enough balance to withdraw the amount requested.")
120120 else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], 0, balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[WBETWITHDRAW], WBET)]))
121121 else if ((asset == "ROYAL"))
122122 then if ((0 >= balance[ROYALWITHDRAW]))
123123 then throw("You dont have enough balance to withdraw the amount requested.")
124124 else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], 0, balance[WAVESWITHDRAW]))]), TransferSet([ScriptTransfer(i.caller, balance[ROYALWITHDRAW], ROYAL)]))
125125 else if ((asset == "WAVES"))
126126 then if ((0 >= balance[WAVESWITHDRAW]))
127127 then throw("You dont have enough balance to withdraw the amount requested.")
128128 else ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[WBETWITHDRAW], 0))]), TransferSet([ScriptTransfer(i.caller, balance[WAVESWITHDRAW], unit)]))
129129 else throw("Invalid asset")
130130 }
131131
132132
133133
134134 @Callable(i)
135135 func addWithdraw (wallet) = if ((i.caller == COMMUNITYWALLET))
136136 then {
137137 let payment = extract(i.payment)
138138 let balance = ParsePlayerBalance(wallet)
139139 if ((payment.assetId == WBET))
140140 then {
141141 let newWbetAmount = (balance[WBETWITHDRAW] + payment.amount)
142142 ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], newWbetAmount, balance[ROYALWITHDRAW], balance[WAVESWITHDRAW]))]), TransferSet(nil))
143143 }
144144 else if ((payment.assetId == ROYAL))
145145 then {
146146 let newRoyalAmount = (balance[ROYALWITHDRAW] + payment.amount)
147147 ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], newRoyalAmount, balance[WAVESWITHDRAW]))]), TransferSet(nil))
148148 }
149149 else if ((payment.assetId == unit))
150150 then {
151151 let newWavesAmount = (balance[WAVESWITHDRAW] + payment.amount)
152152 ScriptResult(WriteSet([DataEntry(wallet, FormatPlayerBalance(balance[WBETLOCKED], balance[ROYALLOCKED], balance[WBETWITHDRAW], balance[ROYALWITHDRAW], newWavesAmount))]), TransferSet(nil))
153153 }
154154 else throw("Invalid asset")
155155 }
156156 else throw("You do not have permission to perform this function.")
157157
158158

github/deemru/w8io/026f985 
51.36 ms