Strike Docs
Search…
Get Cash
Cash is the amount of underlying balance owned by this sToken contract. One may query the total amount of cash currently available to this market.
SErc20 / SEther
1
function getCash() returns (uint)
Copied!
    RETURN: The quantity of underlying asset owned by the contract.
Solidity
1
SErc20 sToken = SToken(0x3FDA...);
2
uint cash = sToken.getCash();
Copied!
Web3 1.0
1
const sToken = SEther.at(0x3FDB...);
2
const cash = (await sToken.methods.getCash().call());
Copied!
Last modified 8mo ago
Copy link