"revertMessage":"Interest rate rebalance conditions were not met"
}
]
},
{
"description":"User 2 deposits ETH and borrows the remaining DAI, causing the stable rates to rise (liquidity rate < user 1 borrow rate). User 0 tries to rebalance user 1 (revert expected)",
"actions":[
{
"name":"deposit",
"args":{
"reserve":"ETH",
"amount":"5",
"user":"2",
"sendValue":"5"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"DAI",
"amount":"100",
"borrowRateMode":"variable",
"user":"2"
},
"expected":"success"
},
{
"name":"rebalanceStableBorrowRate",
"args":{
"reserve":"DAI",
"user":"0",
"target":"1"
},
"expected":"revert",
"revertMessage":"Interest rate rebalance conditions were not met"
}
]
},
{
"description":"User 2 borrows more DAI, causing the liquidity rate to rise above user 1 stable borrow rate User 0 rebalances user 1",