Goldfinch Config Contract Tutorial snippet 1

PHOTO EMBED

Thu Apr 22 2021 15:09:34 GMT+0000 (Coordinated Universal Time)

Saved by @bwest #solidity #ethereum

import "./ICreditLineFactory.sol";

contract CreditDesk {
  address public creditLineFactoryAddress;

  function createCreditLine(CreditLineParams params) public {
    require(validParams(params), "invalid params!");
    
    ICreditLineFactory(creditLineFactoryAddress).createCreditLine(params);
  }
}
content_copyCOPY