tx · GXakgudwXb6iNeXLgPb2CrJxYW48UHHTSKQDJCuZNP26

3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu:  -0.01400000 Waves

2020.11.24 10:05 [1279173] smart account 3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu > SELF 0.00000000 Waves

{ "type": 13, "id": "GXakgudwXb6iNeXLgPb2CrJxYW48UHHTSKQDJCuZNP26", "fee": 1400000, "feeAssetId": null, "timestamp": 1606201545389, "version": 2, "chainId": 84, "sender": "3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu", "senderPublicKey": "CBTEuFN6ku1LNaPuGHHTMh2CBb3kPa5D73XXTJvKydun", "proofs": [ "4G6mW7iDKCSRgcfPVNuGaqfdSBh2mjjAoPfWZ8Y6XgeH2sqjYybiyLqtUxhWiwfRnXG3jvhSRixw1Ah9AwcYgHQe" ], "script": "base64:AAIDAAAAAAAAACwIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgSAwoBCBIAEgMKAQESAwoBAQAAABUAAAAABnVwVm90ZQIAAAAGdXB2b3RlAAAAAA1hZG1pbkFkZHJlc3MxAQAAABoBVDi2IViANlgIPSCUAVQpoGSXhJ2Tw/Y0iwAAAAANYWRtaW5BZGRyZXNzMgEAAAAaAVTlj1A9878YQ058BBZUI9QC+LwgFva37DoAAAAADWFkbWluQWRkcmVzczMBAAAAGgFUPo0bC5weIFiGP3KzAhxqwrizqd9EMgoVAAAAAAVkeXpJZAEAAAAgfqtB2c5SyrdhjTSeT2NUMvY45D97zjqBcAiarzFPFmsBAAAADWdldFByb2ZpbGVLZXkAAAABAAAAAmlkCQABLAAAAAIFAAAAAmlkAgAAABRfZW50cmVwcmVuZXVyUHJvZmlsZQEAAAAMZ2V0U3RhdHVzS2V5AAAAAQAAAAJpZAkAASwAAAACBQAAAAJpZAIAAAAHX3N0YXR1cwEAAAARZ2V0Vm90ZXJBbW91bnRLZXkAAAACAAAAAmlkAAAABnZvdGVJZAkAASwAAAACCQABLAAAAAIJAAEsA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AAwkAAAAAAAACBQAAAAxjdXJyZW50U3Rha2UAAAAAAAAAAAAJAAACAAAAAQIAAAAZWW91IGRvbid0IGhhdmUgYW55IHN0YWtlcwMJAAAAAAAAAgUAAAAJc3Rha2VQb29sAAAAAAAAAAAACQAAAgAAAAECAAAAM05vdGhpbmcgaW4gU3Rha2UgcG9vbCBhdCB0aGlzIHRpbWUuIFRyeSBhZ2FpbiBsYXRlcgMJAABmAAAAAgUAAAAGcmV3YXJkBQAAAAlzdGFrZVBvb2wJAAACAAAAAQIAAAAXTm8gcmV3YXJkcyBhdCB0aGlzIHRpbWUEAAAADG5ld1N0YWtlUG9vbAkAAGUAAAACBQAAAAlzdGFrZVBvb2wFAAAABnJld2FyZAQAAAAObmV3U3Rha2VBbW91bnQJAABlAAAAAgUAAAAMY3VycmVudFN0YWtlBQAAAAZyZXdhcmQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAMZ2V0U3Rha2VyS2V5AAAAAQUAAAAGc3Rha2VyBQAAAA5uZXdTdGFrZUFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAD2dldFN0YWtlUG9vbEtleQAAAAAFAAAADG5ld1N0YWtlUG9vbAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGcmV3YXJkBQAAAAVkeXpJZAUAAAADbmlsAAAAANPbkTU=", "height": 1279173, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6XH57mNapFhK5QeFe4fpMET2nkXmFf9d3z95KVKQVR9D Next: 3CHyyt5jbdWJLwefWPdFLsoULr7esVBNzRjDoaREYCPy Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let upVote = "upvote"
55
6-let adminAddress = base58'3N5cTHzbHc9dyQuBfKMjFKaxcrmRq54XDLu'
6+let adminAddress1 = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
7+
8+let adminAddress2 = base58'3NAqtCScgFynCuRLUoXm2BHTdu8suatCe7b'
9+
10+let adminAddress3 = base58'3Mucpi1K4FMVrZKnYEgjxQf5DkkBX7QrHoJ'
711
812 let dyzId = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
9-
10-func getStakePoolKey () = "stake_pool"
11-
12-
13-func getStakePool () = match getInteger(this, getStakePoolKey()) {
14- case a: Int =>
15- a
16- case _ =>
17- 0
18-}
19-
20-
21-func getStakerKey (staker) = (staker + "_stake")
22-
23-
24-func getCurrentStake (staker) = match getInteger(this, getStakerKey(staker)) {
25- case a: Int =>
26- a
27- case _ =>
28- 0
29-}
30-
3113
3214 func getProfileKey (id) = (id + "_entrepreneurProfile")
3315
3517 func getStatusKey (id) = (id + "_status")
3618
3719
20+func getVoterAmountKey (id,voteId) = (((id + "_") + voteId) + "_amount")
21+
22+
3823 func getVoteKey (id,type) = if ((type == "upvote"))
3924 then (id + "_upvote")
25+ else throw("Invalid vote type")
26+
27+
28+func getVoteAmountKey (id,type) = if ((type == "upvote"))
29+ then (((id + "_") + type) + "_amount")
4030 else throw("Invalid vote type")
4131
4232
6454 }
6555
6656
57+func getVoteAmountCount (voteId,vote) = match getInteger(this, getVoteAmountKey(voteId, vote)) {
58+ case a: Int =>
59+ a
60+ case _ =>
61+ 0
62+}
63+
64+
6765 func getVoterKey (address,voteId) = ((((address + "_") + voteId) + "_") + "vote")
6866
6967
8381 }
8482
8583
84+func getStakerKey (staker) = (staker + "_stake")
85+
86+
87+func getCurrentStake (staker) = match getInteger(this, getStakerKey(staker)) {
88+ case a: Int =>
89+ a
90+ case _ =>
91+ 0
92+}
93+
94+
95+func getStakePoolKey () = "stake_pool"
96+
97+
98+func getStakePool () = match getInteger(this, getStakePoolKey()) {
99+ case a: Int =>
100+ a
101+ case _ =>
102+ 0
103+}
104+
105+
86106 @Callable(i)
87-func addEntrepreneurProfile (name,avatar,bio,gender,location) = if ((i.caller.bytes != adminAddress))
88- then throw("Only Dyzrupt Admin can call this dApp function")
89- else {
107+func addEntrepreneurProfile (name,avatar,bio,gender,location) = if (if (if ((i.caller.bytes == adminAddress1))
108+ then true
109+ else (i.caller.bytes == adminAddress2))
110+ then true
111+ else (i.caller.bytes == adminAddress3))
112+ then {
90113 let transactionId = toBase58String(i.transactionId)
91- WriteSet([DataEntry(getProfileKey(transactionId), ((((((((name + "_") + avatar) + "_") + bio) + "_") + gender) + "_") + location)), DataEntry(getVoteKey(transactionId, "upvote"), 0), DataEntry(getStatusKey(transactionId), "open")])
114+ WriteSet([DataEntry(getProfileKey(transactionId), ((((((((name + "_") + avatar) + "_") + bio) + "_") + gender) + "_") + location)), DataEntry(getVoteKey(transactionId, "upvote"), 0), DataEntry(getVoteAmountKey(transactionId, "upvote"), 0), DataEntry(getStatusKey(transactionId), "open")])
92115 }
116+ else throw("Only Dyzrupt Admin can call this dApp function")
93117
94118
95119
96120 @Callable(i)
97121 func vote (voteId,vote) = {
98122 let pmt = extract(i.payment)
123+ let voter = toBase58String(i.caller.bytes)
99124 if ((pmt.amount == 0))
100125 then throw("You cannot vote without paying voting fee")
101126 else if ((pmt.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
102127 then throw("You can only vote with DYZRUPT token")
103- else if (canVote(toBase58String(i.caller.bytes), voteId))
128+ else if (canVote(voter, voteId))
104129 then if (profileExist(voteId))
105130 then if ((getVoteStatus(voteId) == "open"))
106131 then if ((vote == upVote))
107132 then {
108133 let voteCount = getVoteCount(voteId, vote)
134+ let voteAmountCount = getVoteAmountCount(voteId, vote)
109135 let newVoteCount = (voteCount + 1)
110- ScriptResult(WriteSet([DataEntry(getVoteKey(voteId, vote), newVoteCount), DataEntry(getVoterKey(toBase58String(i.caller.bytes), voteId), voteId)]), TransferSet([ScriptTransfer(this, pmt.amount, dyzId)]))
136+ let newVoteAmountCount = (voteAmountCount + pmt.amount)
137+ ScriptResult(WriteSet([DataEntry(getVoteKey(voteId, vote), newVoteCount), DataEntry(getVoterKey(voter, voteId), voteId), DataEntry(getVoterAmountKey(voter, voteId), pmt.amount), DataEntry(getVoteAmountKey(voteId, vote), newVoteAmountCount)]), TransferSet([ScriptTransfer(this, pmt.amount, dyzId)]))
111138 }
112139 else throw("Not a valid vote value")
113140 else throw("This profile is not open for voting")
118145
119146
120147 @Callable(i)
121-func openVote (voteId) = if ((i.caller.bytes != adminAddress))
122- then throw("Only Dyzrupt Admin can call this dApp function")
123- else if (profileExist(voteId))
148+func openVote (voteId) = if (if (if ((i.caller.bytes == adminAddress1))
149+ then true
150+ else (i.caller.bytes == adminAddress2))
151+ then true
152+ else (i.caller.bytes == adminAddress3))
153+ then if (profileExist(voteId))
124154 then WriteSet([DataEntry(getStatusKey(voteId), "open")])
125155 else throw("Invalid ID")
156+ else throw("Only Dyzrupt Admin can call this dApp function")
126157
127158
128159
129160 @Callable(i)
130-func closeVote (voteId) = if ((i.caller.bytes != adminAddress))
131- then throw("Only Dyzrupt Admin can call this dApp function")
132- else if (profileExist(voteId))
161+func closeVote (voteId) = if (if (if ((i.caller.bytes == adminAddress1))
162+ then true
163+ else (i.caller.bytes == adminAddress2))
164+ then true
165+ else (i.caller.bytes == adminAddress3))
166+ then if (profileExist(voteId))
133167 then WriteSet([DataEntry(getStatusKey(voteId), "closed")])
134168 else throw("Invalid ID")
169+ else throw("Only Dyzrupt Admin can call this dApp function")
170+
171+
172+
173+@Callable(i)
174+func withdraw (voteId) = {
175+ let voter = toBase58String(i.caller.bytes)
176+ if ((getVoter(voter, voteId) != ""))
177+ then if ((getVoteStatus(voteId) == "closed"))
178+ then {
179+ let currentKey = getVoterAmountKey(voter, voteId)
180+ let currentAmount = match getInteger(this, currentKey) {
181+ case a: Int =>
182+ a
183+ case _ =>
184+ throw("You didn't vote for this entrepreneur")
185+ }
186+ if ((currentAmount == 0))
187+ then throw("Seems you have previously withdrawn.")
188+ else ScriptResult(WriteSet([DataEntry(currentKey, 0)]), TransferSet([ScriptTransfer(i.caller, currentAmount, dyzId)]))
189+ }
190+ else throw("Can't withdraw vote amount while voting is still open.")
191+ else throw("You didn't vote for this entrepreneur")
192+ }
135193
136194
137195
145203 then throw("You can only stake with DYZRUPT token")
146204 else {
147205 let currentStake = getCurrentStake(staker)
148- let stakeableAmount = fraction(pmt.amount, 5, 100)
206+ let stakePercent = (20 / 100)
207+ let stakeableAmount = (pmt.amount * stakePercent)
149208 let amountToStake = (pmt.amount - stakeableAmount)
150209 let newStakedAmount = (currentStake + amountToStake)
151- let stakePool = getStakePool()
152- let newStakePool = (stakePool + stakeableAmount)
153- ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakedAmount), DataEntry(getStakePoolKey(), newStakePool)]), TransferSet(nil))
210+ ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakedAmount)]), TransferSet([ScriptTransfer(this, pmt.amount, dyzId)]))
154211 }
155212 }
156213
165222 else if ((amount > currentStake))
166223 then throw("You can't withdraw an amount higher than you staked")
167224 else {
168- let unstakeableAmount = fraction(amount, 10, 100)
169- let amountToUnstake = (amount - unstakeableAmount)
170- let newUnstakedAmount = (currentStake - amount)
171- let stakePool = getStakePool()
172- let newStakePool = (stakePool + unstakeableAmount)
173- ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newUnstakedAmount), DataEntry(getStakePoolKey(), newStakePool)]), TransferSet([ScriptTransfer(i.caller, amountToUnstake, dyzId)]))
225+ let newStakedAmount = (currentStake - amount)
226+ ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakedAmount)]), TransferSet([ScriptTransfer(i.caller, amount, dyzId)]))
174227 }
175228 }
176229
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let upVote = "upvote"
55
6-let adminAddress = base58'3N5cTHzbHc9dyQuBfKMjFKaxcrmRq54XDLu'
6+let adminAddress1 = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
7+
8+let adminAddress2 = base58'3NAqtCScgFynCuRLUoXm2BHTdu8suatCe7b'
9+
10+let adminAddress3 = base58'3Mucpi1K4FMVrZKnYEgjxQf5DkkBX7QrHoJ'
711
812 let dyzId = base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'
9-
10-func getStakePoolKey () = "stake_pool"
11-
12-
13-func getStakePool () = match getInteger(this, getStakePoolKey()) {
14- case a: Int =>
15- a
16- case _ =>
17- 0
18-}
19-
20-
21-func getStakerKey (staker) = (staker + "_stake")
22-
23-
24-func getCurrentStake (staker) = match getInteger(this, getStakerKey(staker)) {
25- case a: Int =>
26- a
27- case _ =>
28- 0
29-}
30-
3113
3214 func getProfileKey (id) = (id + "_entrepreneurProfile")
3315
3416
3517 func getStatusKey (id) = (id + "_status")
3618
3719
20+func getVoterAmountKey (id,voteId) = (((id + "_") + voteId) + "_amount")
21+
22+
3823 func getVoteKey (id,type) = if ((type == "upvote"))
3924 then (id + "_upvote")
25+ else throw("Invalid vote type")
26+
27+
28+func getVoteAmountKey (id,type) = if ((type == "upvote"))
29+ then (((id + "_") + type) + "_amount")
4030 else throw("Invalid vote type")
4131
4232
4333 func profileExist (id) = match getString(this, getProfileKey(id)) {
4434 case a: String =>
4535 true
4636 case _ =>
4737 false
4838 }
4939
5040
5141 func getVoteStatus (voteId) = match getString(this, getStatusKey(voteId)) {
5242 case a: String =>
5343 a
5444 case _ =>
5545 false
5646 }
5747
5848
5949 func getVoteCount (voteId,vote) = match getInteger(this, getVoteKey(voteId, vote)) {
6050 case a: Int =>
6151 a
6252 case _ =>
6353 throw("Not a valid vote ID")
6454 }
6555
6656
57+func getVoteAmountCount (voteId,vote) = match getInteger(this, getVoteAmountKey(voteId, vote)) {
58+ case a: Int =>
59+ a
60+ case _ =>
61+ 0
62+}
63+
64+
6765 func getVoterKey (address,voteId) = ((((address + "_") + voteId) + "_") + "vote")
6866
6967
7068 func getVoter (address,voteId) = match getString(this, getVoterKey(address, voteId)) {
7169 case a: String =>
7270 a
7371 case _ =>
7472 ""
7573 }
7674
7775
7876 func canVote (address,voteId) = {
7977 let voter = getVoter(address, voteId)
8078 if ((voter == ""))
8179 then true
8280 else false
8381 }
8482
8583
84+func getStakerKey (staker) = (staker + "_stake")
85+
86+
87+func getCurrentStake (staker) = match getInteger(this, getStakerKey(staker)) {
88+ case a: Int =>
89+ a
90+ case _ =>
91+ 0
92+}
93+
94+
95+func getStakePoolKey () = "stake_pool"
96+
97+
98+func getStakePool () = match getInteger(this, getStakePoolKey()) {
99+ case a: Int =>
100+ a
101+ case _ =>
102+ 0
103+}
104+
105+
86106 @Callable(i)
87-func addEntrepreneurProfile (name,avatar,bio,gender,location) = if ((i.caller.bytes != adminAddress))
88- then throw("Only Dyzrupt Admin can call this dApp function")
89- else {
107+func addEntrepreneurProfile (name,avatar,bio,gender,location) = if (if (if ((i.caller.bytes == adminAddress1))
108+ then true
109+ else (i.caller.bytes == adminAddress2))
110+ then true
111+ else (i.caller.bytes == adminAddress3))
112+ then {
90113 let transactionId = toBase58String(i.transactionId)
91- WriteSet([DataEntry(getProfileKey(transactionId), ((((((((name + "_") + avatar) + "_") + bio) + "_") + gender) + "_") + location)), DataEntry(getVoteKey(transactionId, "upvote"), 0), DataEntry(getStatusKey(transactionId), "open")])
114+ WriteSet([DataEntry(getProfileKey(transactionId), ((((((((name + "_") + avatar) + "_") + bio) + "_") + gender) + "_") + location)), DataEntry(getVoteKey(transactionId, "upvote"), 0), DataEntry(getVoteAmountKey(transactionId, "upvote"), 0), DataEntry(getStatusKey(transactionId), "open")])
92115 }
116+ else throw("Only Dyzrupt Admin can call this dApp function")
93117
94118
95119
96120 @Callable(i)
97121 func vote (voteId,vote) = {
98122 let pmt = extract(i.payment)
123+ let voter = toBase58String(i.caller.bytes)
99124 if ((pmt.amount == 0))
100125 then throw("You cannot vote without paying voting fee")
101126 else if ((pmt.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
102127 then throw("You can only vote with DYZRUPT token")
103- else if (canVote(toBase58String(i.caller.bytes), voteId))
128+ else if (canVote(voter, voteId))
104129 then if (profileExist(voteId))
105130 then if ((getVoteStatus(voteId) == "open"))
106131 then if ((vote == upVote))
107132 then {
108133 let voteCount = getVoteCount(voteId, vote)
134+ let voteAmountCount = getVoteAmountCount(voteId, vote)
109135 let newVoteCount = (voteCount + 1)
110- ScriptResult(WriteSet([DataEntry(getVoteKey(voteId, vote), newVoteCount), DataEntry(getVoterKey(toBase58String(i.caller.bytes), voteId), voteId)]), TransferSet([ScriptTransfer(this, pmt.amount, dyzId)]))
136+ let newVoteAmountCount = (voteAmountCount + pmt.amount)
137+ ScriptResult(WriteSet([DataEntry(getVoteKey(voteId, vote), newVoteCount), DataEntry(getVoterKey(voter, voteId), voteId), DataEntry(getVoterAmountKey(voter, voteId), pmt.amount), DataEntry(getVoteAmountKey(voteId, vote), newVoteAmountCount)]), TransferSet([ScriptTransfer(this, pmt.amount, dyzId)]))
111138 }
112139 else throw("Not a valid vote value")
113140 else throw("This profile is not open for voting")
114141 else throw("Invalid Profile")
115142 else throw("You can't vote twice")
116143 }
117144
118145
119146
120147 @Callable(i)
121-func openVote (voteId) = if ((i.caller.bytes != adminAddress))
122- then throw("Only Dyzrupt Admin can call this dApp function")
123- else if (profileExist(voteId))
148+func openVote (voteId) = if (if (if ((i.caller.bytes == adminAddress1))
149+ then true
150+ else (i.caller.bytes == adminAddress2))
151+ then true
152+ else (i.caller.bytes == adminAddress3))
153+ then if (profileExist(voteId))
124154 then WriteSet([DataEntry(getStatusKey(voteId), "open")])
125155 else throw("Invalid ID")
156+ else throw("Only Dyzrupt Admin can call this dApp function")
126157
127158
128159
129160 @Callable(i)
130-func closeVote (voteId) = if ((i.caller.bytes != adminAddress))
131- then throw("Only Dyzrupt Admin can call this dApp function")
132- else if (profileExist(voteId))
161+func closeVote (voteId) = if (if (if ((i.caller.bytes == adminAddress1))
162+ then true
163+ else (i.caller.bytes == adminAddress2))
164+ then true
165+ else (i.caller.bytes == adminAddress3))
166+ then if (profileExist(voteId))
133167 then WriteSet([DataEntry(getStatusKey(voteId), "closed")])
134168 else throw("Invalid ID")
169+ else throw("Only Dyzrupt Admin can call this dApp function")
170+
171+
172+
173+@Callable(i)
174+func withdraw (voteId) = {
175+ let voter = toBase58String(i.caller.bytes)
176+ if ((getVoter(voter, voteId) != ""))
177+ then if ((getVoteStatus(voteId) == "closed"))
178+ then {
179+ let currentKey = getVoterAmountKey(voter, voteId)
180+ let currentAmount = match getInteger(this, currentKey) {
181+ case a: Int =>
182+ a
183+ case _ =>
184+ throw("You didn't vote for this entrepreneur")
185+ }
186+ if ((currentAmount == 0))
187+ then throw("Seems you have previously withdrawn.")
188+ else ScriptResult(WriteSet([DataEntry(currentKey, 0)]), TransferSet([ScriptTransfer(i.caller, currentAmount, dyzId)]))
189+ }
190+ else throw("Can't withdraw vote amount while voting is still open.")
191+ else throw("You didn't vote for this entrepreneur")
192+ }
135193
136194
137195
138196 @Callable(i)
139197 func stake () = {
140198 let staker = toBase58String(i.caller.bytes)
141199 let pmt = extract(i.payment)
142200 if ((pmt.amount == 0))
143201 then throw("Stake amount too low")
144202 else if ((pmt.assetId != base58'9XTqBQeJvdMs8VNHv6rXiJLJichg2acG7wCfYcTajQ1G'))
145203 then throw("You can only stake with DYZRUPT token")
146204 else {
147205 let currentStake = getCurrentStake(staker)
148- let stakeableAmount = fraction(pmt.amount, 5, 100)
206+ let stakePercent = (20 / 100)
207+ let stakeableAmount = (pmt.amount * stakePercent)
149208 let amountToStake = (pmt.amount - stakeableAmount)
150209 let newStakedAmount = (currentStake + amountToStake)
151- let stakePool = getStakePool()
152- let newStakePool = (stakePool + stakeableAmount)
153- ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakedAmount), DataEntry(getStakePoolKey(), newStakePool)]), TransferSet(nil))
210+ ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakedAmount)]), TransferSet([ScriptTransfer(this, pmt.amount, dyzId)]))
154211 }
155212 }
156213
157214
158215
159216 @Callable(i)
160217 func unstake (amount) = {
161218 let staker = toBase58String(i.caller.bytes)
162219 let currentStake = getCurrentStake(staker)
163220 if ((currentStake == 0))
164221 then throw("You don't have any stakes")
165222 else if ((amount > currentStake))
166223 then throw("You can't withdraw an amount higher than you staked")
167224 else {
168- let unstakeableAmount = fraction(amount, 10, 100)
169- let amountToUnstake = (amount - unstakeableAmount)
170- let newUnstakedAmount = (currentStake - amount)
171- let stakePool = getStakePool()
172- let newStakePool = (stakePool + unstakeableAmount)
173- ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newUnstakedAmount), DataEntry(getStakePoolKey(), newStakePool)]), TransferSet([ScriptTransfer(i.caller, amountToUnstake, dyzId)]))
225+ let newStakedAmount = (currentStake - amount)
226+ ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakedAmount)]), TransferSet([ScriptTransfer(i.caller, amount, dyzId)]))
174227 }
175228 }
176229
177230
178231
179232 @Callable(i)
180233 func claimDailyStakeReward (reward) = {
181234 let staker = toBase58String(i.caller.bytes)
182235 let currentStake = getCurrentStake(staker)
183236 let stakePool = getStakePool()
184237 if ((currentStake == 0))
185238 then throw("You don't have any stakes")
186239 else if ((stakePool == 0))
187240 then throw("Nothing in Stake pool at this time. Try again later")
188241 else if ((reward > stakePool))
189242 then throw("No rewards at this time")
190243 else {
191244 let newStakePool = (stakePool - reward)
192245 let newStakeAmount = (currentStake - reward)
193246 ScriptResult(WriteSet([DataEntry(getStakerKey(staker), newStakeAmount), DataEntry(getStakePoolKey(), newStakePool)]), TransferSet([ScriptTransfer(i.caller, reward, dyzId)]))
194247 }
195248 }
196249
197250

github/deemru/w8io/026f985 
44.06 ms