> For the complete documentation index, see [llms.txt](https://docs.quipuswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/admin-entrypoints/set_collecting_period.md).

# set\_collecting\_period

An entrypoint that setups a collection period (in blocks) during which bakers' rewards will be collected before distribution.

### Call parameters

<table><thead><tr><th>Field</th><th width="198.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>collecting_period</td><td>nat</td><td>Duration of a collecting period in blocks</td></tr></tbody></table>

### Usage

{% tabs %}
{% tab title="🌮 Taquito" %}

```javascript
const dexCoreAddress = "KT1...";
const collectingPeriod = 2048;
const dexCore = await tezos.contract.at(dexCoreAddress);
const operation = await dexCore.methods.set_collecting_period(collectingPeriod).send();

await operation.confirmation();
```

{% endtab %}
{% endtabs %}

### Errors

* `400` - `sender` of the transaction is not current administrator.
* `412` - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
