> For the complete documentation index, see [llms.txt](https://docs.moneyonchain.com/main-rbtc-contract/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/abis-documentation/revertingonsend.md).

# RevertingOnSend

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

**RevertingOnSend** - version: 0.1.12

## Contract Members

**Constants & Variables**

```js
contract MoC internal moc;
```

***

```js
bool internal acceptMoney;
```

***

## Functions

* [(address payable mocAddress)](#revertingonsendsol)
* [()](#revertingonsendsol)
* [setAcceptingMoney(bool accepting)](#setacceptingmoney)
* [mintBProx(bytes32 bucket, uint256 bproxAmountToMint, address payable vendorAccount)](#mintbprox)
* [mintDoc(uint256 docAmountToMint, address payable vendorAccount)](#mintdoc)
* [redeemDoCRequest(uint256 docAmount)](#redeemdocrequest)

###

Constructor

```js
function (address payable mocAddress) public nonpayable
```

**Arguments**

| Name       | Type            | Description          |
| ---------- | --------------- | -------------------- |
| mocAddress | address payable | MoC contract address |

###

```js
function () external payable
```

**Arguments**

### setAcceptingMoney

```js
function setAcceptingMoney(bool accepting) public nonpayable
```

**Arguments**

| Name      | Type | Description |
| --------- | ---- | ----------- |
| accepting | bool |             |

### mintBProx

> ⚠ This has been deprecated since the [Proposal to remove leveraged positions](https://forum.moneyonchain.com/t/removal-of-leveraged-positions/298) from the protocol was **approved**, however it is necessary to maintain the contracts and their documentation for legacy support.

> ⚠ See the [approved technical proposal](https://forum.moneyonchain.com/t/technical-proposal-for-removal-of-leveraged-positions/308#technical-proposal-for-removal-of-leveraged-positions-1) to understand how the behavior of this function has changed.

```js
function mintBProx(bytes32 bucket, uint256 bproxAmountToMint, address payable vendorAccount) public payable
```

**Arguments**

| Name              | Type            | Description |
| ----------------- | --------------- | ----------- |
| bucket            | bytes32         |             |
| bproxAmountToMint | uint256         |             |
| vendorAccount     | address payable |             |

### mintDoc

```js
function mintDoc(uint256 docAmountToMint, address payable vendorAccount) public payable
```

**Arguments**

| Name            | Type            | Description |
| --------------- | --------------- | ----------- |
| docAmountToMint | uint256         |             |
| vendorAccount   | address payable |             |

### redeemDoCRequest

```js
function redeemDoCRequest(uint256 docAmount) public nonpayable
```

**Arguments**

| Name      | Type    | Description |
| --------- | ------- | ----------- |
| docAmount | uint256 |             |
