OhBankis the main protocol yield-generating contract. Each Bank manages a set of Strategies that interact with individual DeFi protocols, creating a DeFi Yield Index.
underlyingtoken (i.e. USDC) to the Bank to receive Bank shares (i.e. Oh! USDC) that automatically accrue interest.
deposit()- Deposit a given amount of underlying tokens to receive equivalent Bank shares
depositFor()- Deposit a given amount of underlying tokens from the caller for a given recipient
depositWithPermit()- Deposit a given amount of underlying tokens from the caller for a given recipient for EIP-2612 Compliant tokens (tokens that support the
withdraw()- Withdraw a given amount of Bank shares to receive equivalent underlying tokens
permit()function (EIP-2612 Compliant) and upgradeability via standardized proxy storage (EIP-1967 Compliant).