Skip to content

Commit 173875d

Browse files
committed
test: remove stake limit
1 parent fd83b6c commit 173875d

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

test/kleros/kleros-liquid.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ contract('xKlerosLiquid', (accounts) => {
101101
let maxDrawingTime
102102
let subcourtTree
103103
let subcourtMap
104-
let maxTotalStakeAllowed
105104
let klerosLiquid
106105
beforeEach(async () => {
107106
governor = accounts[0]
@@ -127,7 +126,6 @@ contract('xKlerosLiquid', (accounts) => {
127126
} = generateSubcourts(randomInt(4, 2), 3)
128127
subcourtTree = _subcourtTree
129128
subcourtMap = _subcourtMap
130-
maxTotalStakeAllowed = web3.utils.toWei('30000000', 'ether') // 30M PNK
131129

132130
const sortitionSumTreeFactoryLib = await SortitionSumTreeFactory.new()
133131
await xKlerosLiquid.link(
@@ -149,7 +147,6 @@ contract('xKlerosLiquid', (accounts) => {
149147
subcourtTree.jurorsForJump,
150148
subcourtTree.timesPerPeriod,
151149
subcourtTree.sortitionSumTreeK,
152-
maxTotalStakeAllowed,
153150
],
154151
{ unsafeAllowLinkedLibraries: true }
155152
)
@@ -787,31 +784,6 @@ contract('xKlerosLiquid', (accounts) => {
787784
await klerosLiquid.setStake(subcourtTree.children[0].children[0].ID, 0)
788785
})
789786

790-
it('Should reject staking when the max limit is reached.', async () => {
791-
await asyncForEach(
792-
(subcourt) =>
793-
klerosLiquid.createSubcourt(
794-
subcourt.parent,
795-
subcourt.hiddenVotes,
796-
subcourt.minStake,
797-
subcourt.alpha,
798-
subcourt.jurorFee,
799-
subcourt.jurorsForJump,
800-
subcourt.timesPerPeriod,
801-
subcourt.sortitionSumTreeK
802-
),
803-
subcourtMap
804-
)
805-
const stake1 = web3.utils.toWei('20000000', 'ether') // 20M PNK
806-
const stake2 = web3.utils.toWei('20000000', 'ether') // 20M PNK
807-
const totalStake = web3.utils.toWei('40000000', 'ether') // 40M PNK
808-
await bridgedPinakion.approve(pinakion.address, totalStake, {
809-
from: governor,
810-
})
811-
await pinakion.deposit(totalStake, { from: governor })
812-
await klerosLiquid.setStake(subcourtTree.ID, stake1)
813-
await expectThrow(klerosLiquid.setStake(subcourtTree.ID, totalStake))
814-
})
815787

816788
it('Should prevent overflows when executing delayed set stakes.', async () => {
817789
const extraData = `0x${(0).toString(16).padStart(64, '0')}${(1)

0 commit comments

Comments
 (0)