> For the complete documentation index, see [llms.txt](https://docs.defisaver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defisaver.com/actions/chicken-bonds/cbcreate.md).

# CBCreate

### Description

Creates a Chicken Bond from a proxy

> **Notes**
>
> If amount == max.uint it will pull whole balance of .from

### Action ID

`0xb5b50f23`

### SDK Action

```ts
const cBCreateAction = new dfs.actions.chickenBonds.CBCreateAction(
    amount,
    from
);
```

### Action Type

`STANDARD_ACTION`

### Input Parameters

```solidity
    /// @param amount LUSD token amount to pull
    /// @param from Account from where to pull LUSD amount
    struct Params {
        uint256 amount;
        address from;
    }
```

### Return Value

```solidity
return bytes32(bondId);
```

### Events and Logs

```solidity
emit ActionEvent("CBCreate", logData);
logger.logActionDirectEvent("CBCreate", logData);
bytes memory logData = abi.encode(params);
```
