"description":"User 0 redeems the deposited USDC plus interest",
"actions":[
{
"name":"redeem",
"args":{
"reserve":"USDC",
"amount":"-1",
"user":"0"
},
"expected":"success"
}
]
},
{
"description":"User 1 redeems the collateral",
"actions":[
{
"name":"redeem",
"args":{
"reserve":"ETH",
"amount":"-1",
"user":"1"
},
"expected":"success"
}
]
},
{
"description":"User 1 deposits 1000 DAI, user 3 tries to borrow 1000 DAI without any collateral (revert expected)",
"actions":[
{
"name":"mint",
"args":{
"reserve":"DAI",
"amount":"1000",
"user":"1"
},
"expected":"success"
},
{
"name":"approve",
"args":{
"reserve":"DAI",
"user":"1"
},
"expected":"success"
},
{
"name":"deposit",
"args":{
"reserve":"DAI",
"amount":"1000",
"user":"1"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"DAI",
"amount":"1000",
"borrowRateMode":"variable",
"user":"3"
},
"expected":"revert",
"revertMessage":"The collateral balance is 0"
}
]
},
{
"description":"user 3 deposits 0.1 ETH collateral to borrow 100 DAI; 0.1 ETH is not enough to borrow 100 DAI (revert expected)",
"actions":[
{
"name":"deposit",
"args":{
"reserve":"ETH",
"amount":"0.1",
"user":"3",
"sendValue":"0.1"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"DAI",
"amount":"100",
"borrowRateMode":"variable",
"user":"3"
},
"expected":"revert",
"revertMessage":"There is not enough collateral to cover a new borrow"
}
]
},
{
"description":"user 3 redeems the 0.1 ETH",
"actions":[
{
"name":"redeem",
"args":{
"reserve":"ETH",
"amount":"-1",
"user":"3"
},
"expected":"success"
}
]
},
{
"description":"User 1 deposits 1000 USDC, user 3 tries to borrow 1000 USDC without any collateral (revert expected)",
"actions":[
{
"name":"mint",
"args":{
"reserve":"USDC",
"amount":"1000",
"user":"1"
},
"expected":"success"
},
{
"name":"approve",
"args":{
"reserve":"USDC",
"user":"1"
},
"expected":"success"
},
{
"name":"deposit",
"args":{
"reserve":"USDC",
"amount":"1000",
"user":"1"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"USDC",
"amount":"1000",
"borrowRateMode":"variable",
"user":"3"
},
"expected":"revert",
"revertMessage":"The collateral balance is 0"
}
]
},
{
"description":"user 3 deposits 0.1 ETH collateral to borrow 100 USDC; 0.1 ETH is not enough to borrow 100 USDC (revert expected)",
"actions":[
{
"name":"deposit",
"args":{
"reserve":"ETH",
"amount":"0.1",
"user":"3",
"sendValue":"0.1"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"USDC",
"amount":"100",
"borrowRateMode":"variable",
"user":"3"
},
"expected":"revert",
"revertMessage":"There is not enough collateral to cover a new borrow"
}
]
},
{
"description":"user 3 redeems the 0.1 ETH",
"actions":[
{
"name":"redeem",
"args":{
"reserve":"ETH",
"amount":"-1",
"user":"3"
},
"expected":"success"
}
]
},
{
"description":"User 0 deposits 1000 DAI, user 6 deposits 2 ETH and borrow 100 DAI at variable rate first, then 100 DAI at stable rate, repays everything. User 0 redeems",
"actions":[
{
"name":"mint",
"args":{
"reserve":"DAI",
"amount":"1000",
"user":"0"
},
"expected":"success"
},
{
"name":"approve",
"args":{
"reserve":"DAI",
"user":"0"
},
"expected":"success"
},
{
"name":"deposit",
"args":{
"reserve":"DAI",
"amount":"1000",
"user":"0"
},
"expected":"success"
},
{
"name":"deposit",
"args":{
"reserve":"ETH",
"amount":"2",
"user":"6",
"sendValue":"2"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"DAI",
"amount":"100",
"borrowRateMode":"variable",
"user":"6",
"timeTravel":"365"
},
"expected":"success"
},
{
"name":"borrow",
"args":{
"reserve":"DAI",
"amount":"100",
"borrowRateMode":"stable",
"user":"6",
"timeTravel":"365"
},
"expected":"success"
},
{
"name":"mint",
"description":"Mint 50 DAI to cover the interest",