Exchange Rate
exchangeRate = (getCash() + totalBorrows() - totalReserves()) / totalSupply()function exchangeRateCurrent() returns (uint)SErc20 sToken = SToken(0x3FDA...);
uint exchangeRateMantissa = sToken.exchangeRateCurrent();const sToken = SEther.at(0x3FDB...);
const exchangeRate = (await sToken.methods.exchangeRateCurrent().call()) / 1e18;Last updated
Was this helpful?