# set\_fees

An entrypoint that setups dev and bid fees.

### Call parameters

```pascaligo
type fees_t             is [@layout:comb] record [
  dev_fee_f               : nat;
  bid_fee_f               : nat;
]
```

<table><thead><tr><th width="229">Field</th><th width="150">Type</th><th width="199.77716643741405">Hint</th><th>Description</th></tr></thead><tbody><tr><td>dev_fee_f</td><td>nat</td><td>Float value multiplied by 1e+18</td><td>Fee that goes to the devs fund and can be <a href="withdraw_dev_fee">withdrawn</a> by an administrator</td></tr><tr><td>bid_fee_f</td><td>nat</td><td>Float value multiplied by 1e+18</td><td>Fee in <a href="https://tzkt.io/KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb/operations/">QuipuSwap Governance token</a> that applies on each bid for all auctions</td></tr></tbody></table>

### Usage

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

```javascript
const devFeeF = 0.25 * 10 ** 18; // 0.25%
const bidFeeF = 0.5 * 10 ** 18; // 0.5%
const auctionAddress = "KT1...";
const fees = {
    dev_fee_f: devFeeF,
    bid_fee_f: bidFeeF,
};
const auction = await tezos.contract.at(auctionAddress);
const operation = await dexCore.methodsObject.set_fees(fees).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).
