Switch Interest Type
Swaps the user's borrow rate modes between stable and variable.
/aave/swapBorrowRateMode
POST
https://cryptotalk-public-gateway-byeii62k.de.gateway.dev/aave/swapBorrowRateMode
1) Request body must be JSON
2) Request structure sample
{
"params" : {
"addr" : "0xabcd...efe",
"from_tkn" : "DAI",
"gas" : "80",
"interestRateMode" : 2
}
}
3) from_tkn is case sensitive
4) Sample response contain rawTx object that needs to be signed and broadcasted to main net.
5) interestRateMode; send 2 to switch from variable to stable rate, send 1 to switch from stable to variable rate
Query Parameters
key
string
API Key
Request Body
params
object
{
addr : "0xabcd....efe",
from_tkn: "WBTC",
gas: "80",
interestRateMode : 2
}
Last updated
Was this helpful?