To Contract

To use the function we must import it.

use std::asset::force_transfer_to_contract;

To transfer some amount of an asset we specify the amount that we would like to transfer, the asset and the ContractId to send it to.

    let amount = 10;
    let address = 0x0000000000000000000000000000000000000000000000000000000000000001;
    let asset = BASE_ASSET_ID;
    let pool = ContractId::from(address);

    force_transfer_to_contract(pool, asset, amount);