Contract ABI

BTU

// Repay or prepay BTU
function withdraw(uint256 _amount) public

// liquidate BTU
function liquidate(address _liqAddress) public

BTCC

// Borrow BTU
function deposit(uint256 _amount, uint256 time) public

// Increase collateral (BTCC)
function inc(address usr_, uint256 amount_) public

// Query BTCC token address
function getTokenAddress() public view returns (address) 

Oracle

// Update BTCC/BTU quote price
function update(uint256 price_, uint32 time_) external onlyOracle

Vault

// Query the public liquidation list
function getliqRecord(
        uint256 begin,
        uint256 end
    ) external view returns (uint256 length, Record[] memory recordList)

// Query the liquidated record of the current address
 function getRecordLiquidationHistoryIndex(
        address addr_
    ) public view returns (uint256[] memory)

// Query all loan record number history
function getRecordHistoryIndex(
        address addr_
    ) public view returns (uint256[] memory)

// Query available loan record number
function getRecordIndex(address addr_) public view returns (uint256) 

// Query debt detail (key information)
function getDebt(address addr_) public view returns (uint256, uint256)

// Query the loan detail (all information)
function getRecord(uint256 index_) public view returns (Record memory) 

// Query BTCC/BTU quote price
function getPrice() public view returns (uint256)

// Query realtime Loan-to-value ratio
function getCurLtvRate(address addr_) public view returns (uint256)

// Query all rate like L2VR LMR IR
function getAllRate()
        public
        view
        returns (uint256 ltv_rate_, uint256 liq_rate_, uint256 interest_rate_)

// Query borrowing cost fee
function getFee() public view returns (uint256)

Liquidation

// Query rewards rate (current = 0%)
function getRewardsRate() external view returns (uint256) {
        return rewardsRate;
    }

// Query liquidation rate  (current = 120%)
function getLiquidationRate() external view returns (uint256) {
        return liquidationRate;
    }

// Query the buffer period after maturity date 
function getBufferPeriod() external view returns (uint256) {
        return buffer_period;
    }

Channel

// Stake BTC - dedicated channel
Using Bool DHC committee ABI, you can refer to https://docs.bool.network/.

// Unstake BTC - dedicated channel
 function withdraw(
        uint256 amount,
        bytes calldata recipient,
        address refundAddress
    ) external payable override whenNotPaused(PausedType.Withdraw) nonReentrant

// Redeem BTC - oneway channel
function withdraw(
        uint256 _amount, 
        bytes memory btc_address
    ) public

// Release BTC - dedicated channel to oneway channel
function release(
        uint256 amount,
        bytes calldata releaseAddress
    ) external whenNotPaused(PausedType.Withdraw) nonReentrant

// Query withdraw fee
function getTotalWithdrawFee(
        uint256 amount,
        bytes calldata recipient
    ) public view override returns (uint256 bridgeFee_, uint256 withdrawFee_)

Last updated