# pour\_over

An entrypoint that sends TEZ tokens to another Bucket contract. This is necessary during the [***swap***](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/dex-entrypoints/swap) operation in order to immediately transfer TEZ tokens from one Bucket contract to another and not make unnecessary [***pour\_out***](https://docs.quipuswap.com/smart-contracts/dex-2.0/bucket-contract/entrypoints-overview/pour_out) and [***fill***](https://docs.quipuswap.com/smart-contracts/dex-2.0/bucket-contract/entrypoints-overview/fill) operations.

### Call parameters

```pascaligo
type pour_over_t        is [@layout:comb] record [
  bucket                  : address;
  amt                     : nat;
]
```

| Field  | Type    | Description                                         |
| ------ | ------- | --------------------------------------------------- |
| bucket | address | Bucket contract address for receiving of TEZ tokens |
| amt    | nat     | Amount to send                                      |

### Usage

Only [DexCore](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract) contract can call this entrypoint.

### Errors

* `403` - `sender` of the transaction is not [DexCore](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract) contract.
* `412` - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
