Asset

The Asset in the Finn Exchange smart contract is a fundamental object that defines the asset being traded in the futures contract.

The Asset comprises of the following information:

Every Asset has a unique hash. That unique hash is used in the “Asset” parameter when creating a new Futures Contract. There can be no two assets with different parameters but the same hash because all parameters are part of the hash, therefore a change in parameters would result in a new unique asset hash.

bytes32 futuresAssetHash = keccak256(
    this, 
    baseToken, 
    priceUrl, 
    pricePath, 
    decimals
);

Last updated