# T4L3NT Rewards distributor

Link to github repo <https://github.com/Decentralized-Pictures/t4l3nt-reward-distributor>

## Dependencies

Python3

## Install Python3

#### Start a bash session inside the container

```bash
docker exec -it <container-ID> bash
```

Update software list with apt-get

```
sudo apt-get update
```

Install Python3

```
sudo apt-get install python3-pip
```

## Clone repo and Install rewards distributor dependencies

Install git, nano, and other dependencies and import your key

```
sudo apt-get install git nano
git clone https://github.com/Decentralized-Pictures/t4l3nt-reward-distributor.git
cd t4l3nt-reward-distributor
pip3 install -r requirements.txt
tlnt-signer import secret key <key_name> <uri>
```

Edit the distributor config file as you see fit you will need to decide the fees you charge for your producer delegators and any addresses that are exempt from fees etc.

```
mkdir -p ~/pymnt/cfg
cd ~/pymnt/cfg
nano <your_producer_address>.yaml
```

In the yaml file, paste in the configuration and edit the contents to be appropriate for your producer:

```
version: 1.0
baking_address: <your_producer_address>
payment_address: <your_producer_address>
rewards_type: actual
service_fee: 0
founders_map:
  {}
supporters_set:
  {}
min_delegation_amt: 1
reactivate_zeroed: False
pay_denunciation_rewards: True
delegator_pays_xfer_fee: True
delegator_pays_ra_fee: True
rules_map:
  mindelegation: TOB
plugins:
  enabled:
```

Start up the tlnt-signer supervisor process.

```
supervisorctl start tlnt-signer
```

Start up the rewards distributor

```
cd ~/t4l3nt-reward-distributor/
```

<pre><code><strong>python3 src/main.py -A http://127.0.0.1:8733 -E http://127.0.0.1:6732 -C 2269 -O 1
</strong></code></pre>

Add -D flag (Dry run) to just run and create reports in reports/ folder and not actually payout and do the transfers.

The -C flag is the cycle number to start paying out to delegates.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://decentralized-pictures-foundatio.gitbook.io/dcp-docs-v0.0.1/t4l3nt-net/blockchain/t4l3nt-rewards-distributor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
