---
# System prepended metadata

title: Bonds model structure

---

# Bonds model structure
[TOC]
## DAO

``` json=
{
    id: "0x0...", // "0" or any unique address
    name: "BitDAO",
    about: "lorem ipsum",
    website: "https://bitdao.io",
    snapshot: "https://snapshot.com/bitdao",
    twitter: "https://twitter.com/bitdao",
    github: "https://github.com/bitdao",
    logo: "ipfsurl?",
    admin: "0x0...", // if not used as Id
    approved: true, // sort of control to display or not on our side
    defaultData: {
        treasury: ["0xDA707468EA96FFFC1ECAAD44CDE4A66F305D1756"],
        tokens: [
            {
                symbol: "BIT",
                address: "0x0..."
            }
        ],
        collateralMin: "100",
        operators: [
            "0xAF9DC910A3E934F7E4C9C845D9624FDEC0A1D5C3",
            "0x8D3872C1D52C933F08AA6FDEB1BFF1A57DB2D9F8"
        ]
    },
}

// id = admin address if only one DAO per admin, probably not the case
```

## Bond

``` json=
{
    id: "0x0...", // contract address ?
    daoId: "0x0...", // id 
    proposal: "https://snapshot.com/capital001",
    projectName: "Obeliks AE",
    parametersTitle: "Purchase Trezo Millennio 2021 model",
    parameters: "lorem ipsum...",
    slashingRules: [
        "Rule 1",
        "Rule 2",
        "Rule 3"
    ],
    amount: "15000000",
    minimumDeposit: "100",
    initialDebtTokens: "100",
    debtTokens: "10000000000",
    initialDebtTokens: [
        {
            symbol: "BIT",
            address: "0x0..."
        }
    ],
    collateralDate: "2022-03-04T13:33:03.969Z",
    deliveryDate: "2022-07-04T13:33:03.969Z",
    withdrawDate: "2023-01-01T13:33:03.969Z",
    state: "passed", // failed, partial, expired
    status: "",
    isPaused: false,
    collateralBalance: "1000000",
    hasFullCollateral: false,
    guarantors: [
        "0x01...",
        "0x02...",
    ]
}

```
### state
_Based on the admin actions_
**passed:** Community voted to approve deliverable proposal.
**failed:** Deliverable proposal failed, all collateral will return to treasury.
**partial:** The community voted to slash 3,000,000 BIT.
**expired**: collateral not met after collateralDate 


### status
_not sure if this need to be part of the api or just a FE logic_
**active:** bond created
**closed:** all redeem or slashed (no funds)
**need review:** fully collateralized
**redeem:** the contract have funds marked as redeem


## Guarantor
```json=
{
    id:"0x0",
    bondId: "0x0",
    amount: "2000",
    date: "2023-01-01T13:33:03.969Z",
    
    
}
```