# BtcPriceProviderMock

View Source: [contracts/mocks/BtcPriceProviderMock.sol](https://github.com/money-on-chain/main-RBTC-contract/blob/master-gitbook/contracts/mocks/BtcPriceProviderMock.sol)

**↗ Extends:** [**PriceFeed**](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/abis-documentation/pricefeed)**,** [**PriceProvider**](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/abis-documentation/priceprovider)

**BtcPriceProviderMock** - version: 0.1.12

## Contract Members

**Constants & Variables**

```js
bytes32 internal btcPrice;
```

***

```js
bool internal has;
```

***

## Functions

* [(uint256 price)](#btcpriceprovidermocksol)
* [peek()](#peek)
* [poke(uint128 val\_, uint32 )](#poke)
* [post(uint128 val\_, uint32 , address )](#post)

###

Constructor

```js
function (uint256 price) public nonpayable
```

**Arguments**

| Name  | Type    | Description                 |
| ----- | ------- | --------------------------- |
| price | uint256 | BTC price for mock contract |

### peek

⤾ overrides [PriceProvider.peek](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/priceprovider#peek)

```js
function peek() external view
returns(bytes32, bool)
```

**Arguments**

### poke

⤾ overrides [PriceFeed.poke](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/pricefeed#poke)

```js
function poke(uint128 val_, uint32 ) external nonpayable
```

**Arguments**

| Name  | Type    | Description |
| ----- | ------- | ----------- |
| val\_ | uint128 |             |
|       | uint32  |             |

### post

⤾ overrides [PriceFeed.post](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/pricefeed#post)

```js
function post(uint128 val_, uint32 , address ) external nonpayable
```

**Arguments**

| Name  | Type    | Description |
| ----- | ------- | ----------- |
| val\_ | uint128 |             |
|       | uint32  |             |
|       | address |             |
