Documentation

Contract APIs

Low-level function signatures for integration

PrivateLendingIngress (Mantle)

createDeposit(address token, uint256 amount)

Transfers ERC20 tokens from msg.sender to the vault and mints a virtual Deposit ID.

Returns: uint256 depositId
initiateAction(uint256 depositId, bytes encryptedPayload)

Emits a cross-chain message to Sapphire via Hyperlane. The payload must be encrypted client-side.

LendingCore (Sapphire)

processAction(bytes32 actionHash, bytes encryptedPayload)

Owner Only. Decrypts the payload and executes the logic (Supply/Borrow/Repay/Withdraw).

calculateHealthFactor(address user) view

Returns the current health factor scaled by 1e18. Can be called via a Sapphire View Call.