The Credit Account is a minimal contract that holds assets and executes operations on behalf of the borrower.
View Functions
factory
function factory() external view returns (address)
Returns the address of the account factory.
The account factory contract address
creditManager
function creditManager() external view returns (address)
Returns the address of the credit manager.
The credit manager contract address
Functions
safeTransfer
function safeTransfer(
address token,
address to,
uint256 amount
) external
Safely transfers tokens from the credit account.
execute
function execute(
address target,
bytes calldata data
) external returns (bytes memory result)
Executes a call to an external contract.
The target contract address
The result of the external call
rescue
function rescue(
address target,
bytes calldata data
) external
Rescues funds from the credit account (emergency function).
The target contract address