# Close Cdp Helper

Close Cdp Helper allows to easily create a CloseCdp object.

# Provided Operations

  1. Creates a CloseCdp from the given wallet and timeStamp. N.B.: timeStamp is the 'height' at which the position was opened

    static CloseCdp fromWallet(
      Wallet wallet,
      int timeStamp,
    )
    
    1
    2
    3
    4

# Usage examples

final networkInfo = NetworkInfo(
  bech32Hrp: 'did:com:',
  lcdUrl: 'http://localhost:1317',
);

final mnemonic = ['will', 'hard', ..., 'man'];
final wallet = Wallet.derive(mnemonic, networkInfo);

final closeCdp = CloseCdpHelper.fromWallet(
  wallet,
  1234,
);
1
2
3
4
5
6
7
8
9
10
11
12