Contract Addresses
Below are the official smart contract addresses for the Osito Protocol deployed on Berachain. Always verify these addresses by checking official Osito channels before interacting with any contracts.
Mainnet Contracts
Contract | Address | Description |
---|---|---|
OsitoLending | 0x123... | Main Osito protocol contract that handles all lending, borrowing, and staking operations |
OsitoToken | 0x456... | Verifies token eligibility based on deployer and burned LP |
OsitoFactory | 0x789... | Factory contract used for deploying the protocol contracts |
Testnet Contracts
Contract | Address | Description |
---|---|---|
OsitoLending | 0xtest123... | Main Osito protocol contract (testnet) |
OsitoToken | 0xtest456... | Token verification contract (testnet) |
OsitoFactory | 0xtest789... | Factory contract (testnet) |
Contract Interactions
Here's a high-level overview of how the contracts interact:
-
OsitoLending: The central contract that handles all protocol operations including:
- Supplying and withdrawing wBERA
- Depositing and withdrawing token collateral
- Borrowing and repaying wBERA
- Staking and unstaking tokens
- Liquidating positions
- Collecting yield
-
OsitoToken: Verifies token eligibility by checking:
- If the token is from a whitelisted deployer (Panda Factory or Ramen)
- If the token has burned LP tokens
- Provides methods to query token and pool information
-
OsitoFactory: Used to deploy the protocol in a standardized manner.
Verifying Contracts
For security, always verify that you're interacting with the official Osito Protocol contracts:
-
Check the contract addresses on the official Osito website: osito.finance/contracts
-
Verify the contract code on the Berachain explorer to ensure it matches the official open-source code.
-
Check for the contract verification badge on the Berachain explorer.
Contract ABIs
ABIs (Application Binary Interfaces) for all Osito Protocol contracts are available in our GitHub repository:
github.com/osito-protocol/osito-contracts/abis
Integration Examples
For developers looking to integrate with Osito Protocol, we provide code examples for common interactions:
// Example: Depositing wBERA to the lending pool
async function depositWBERA(signer, amount) {
const ositoLending = new ethers.Contract(
OSITO_LENDING_ADDRESS,
OsitoLendingABI,
signer
);
// Approve wBERA transfer
const wbera = new ethers.Contract(
WBERA_ADDRESS,
ERC20ABI,
signer
);
await wbera.approve(OSITO_LENDING_ADDRESS, amount);
// Deposit to lending pool
const tx = await ositoLending.supplyWbera(amount);
return tx;
}
More integration examples can be found in our Developer Documentation.
Security Audits
All Osito Protocol contracts have undergone thorough security audits. Audit reports can be found here:
Note: The addresses provided in this document are placeholders. The actual contract addresses will be published when the protocol is deployed to Berachain.