Depositing or withdrawing into Dolomite is easy with the BorrowPositionProxyV1. You can find the address for BorrowPositionProxyV1here.
libraryAccountBalanceLib {/// Checks that either BOTH, FROM, or TO accounts do not have negative balancesenumBalanceCheckFlag { Both, From, To, None }}eventBorrowPositionOpen(addressindexed _borrower,uint256indexed _borrowAccountNumber);/** * @dev Transfers collateral from the source account number to the destination account * number. Emits a `BorrowPositionOpen` event before the Operation executes. * This enables the offchain data indexers to see the position being opened and * start watching for Actions. * * @param _fromAccountNumber The index from which `msg.sender` will be sourcing the * deposit * @param _toAccountNumber The index into which `msg.sender` will be depositing * @param _collateralMarketId The ID of the market being deposited * @param _amountWei The amount, in Wei, to deposit * @param _balanceCheckFlag Flag used to check if `_fromAccountNumber`, * `_toAccountNumber`, or both accounts can go negative * after the transfer settles. Setting the flag to * `BalanceCheckFlag.None=3` * results in neither account being checked. */functionopenBorrowPosition(uint256_fromAccountNumber,uint256_toAccountNumber,uint256_collateralMarketId,uint256_amountWei,AccountBalanceLib.BalanceCheckFlag_balanceCheckFlag) external;
Isolation Mode Assets
This part of the docs is still under construction 🚧