Main Contract
  • Introduction
  • Money on Chain platform
    • Main concepts
    • System states
    • Public actions
      • User actions
      • Process actions
    • Contracts architecture
      • MoC
      • CommissionSplitter
      • MoCState
      • MoCBucketContainer
      • MoCSettlement
      • MoCHelperLib
      • MoCLibConnection
      • MoCConverter
      • MoCExchange
      • MoCConnector
      • MoCBProxManager
      • MoCInrate
      • MoCVendors
      • MoCWhitelist
      • MoCBase
      • OwnerBurnableToken
      • BProToken
      • DocToken
      • MoCToken
      • PriceProvider
    • Contract mocks
    • Relevant patterns and choices
    • Data dictionary
    • Getting started
  • Integration with MoC platform
    • Introduction to MoC
      • The MoC Contract
      • MoC Precisions
      • MoC State Contracts
    • Getting BPros
      • Minting BitPros
      • Redeeming BitPros
    • Getting DoCs
      • Minting DoCs
      • Redeeming DoCs
        • On Settlement: redeemDocRequest
        • On Settlement: alterRedeemRequestAmount
        • Outside Settlement: redeemFreeDocVendors
        • On Liquidation State: redeemAllDoc
        • How-to
    • Commission fees values
    • Vendors
    • Fees calculation
    • From outside the blockchain
      • Using RSK nodes
      • Using web3
      • Official Money on Chain ABIs
      • Events
      • Example code minting BPros
      • Example code minting BPros without Truffle
      • Example code redeeming BPros
      • Example code redeeming BPros without Truffle
      • Example code minting DOC
      • Example code redeeming free DOC
      • Example code redeeming DOC Request
      • Example code redeeming all DOC
  • Smart contracts
    • Contracts verification
    • ABIs documentation
      • BProToken
      • BtcPriceProviderMock
      • DocToken
      • ERC20Mintable
      • Governed
      • Initializable
      • MakeStoppable
      • MakeUnstoppable
      • MoC
      • MoCBProxManager
      • MoCBucketContainer
      • MoCConnector
      • MoCConverter
      • MoCEMACalculator
      • MoCExchange
      • MoCHelperLib
      • MoCHelperLibMock
      • MoCInrate
      • MoCLibConnection
      • MoCPriceProviderMock
      • MoCSettlement
      • MoCSettlementMock
      • MoCState
      • MoCStateMock
      • MoCToken
      • MoCVendors
      • MoCWhitelist
      • MockMakeStoppable
      • MockMakeUnstoppable
      • MockStopper
      • MockUpgradeDelegator
      • MockUpgraderTemplate
      • OwnerBurnableToken
      • Pausable
      • PriceFeed
      • PriceFeederAdder
      • PriceFeederRemover
      • PriceProvider
      • RevertingOnSend
      • Stoppable
      • Stopper
      • UpgradeDelegator
      • UpgraderTemplate
Powered by GitBook
On this page
  • Contract Members
  • Functions
  • setAcceptingMoney
  • mintBProx
  • mintDoc
  • redeemDoCRequest
  1. Smart contracts
  2. ABIs documentation

RevertingOnSend

PreviousPriceProviderNextStoppable

Last updated 2 years ago

View Source:

RevertingOnSend - version: 0.1.12

Contract Members

Constants & Variables

contract MoC internal moc;

bool internal acceptMoney;

Functions

Constructor

function (address payable mocAddress) public nonpayable

Arguments

Name
Type
Description

mocAddress

address payable

MoC contract address

function () external payable

Arguments

setAcceptingMoney

function setAcceptingMoney(bool accepting) public nonpayable

Arguments

Name
Type
Description

accepting

bool

mintBProx

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

Arguments

Name
Type
Description

bucket

bytes32

bproxAmountToMint

uint256

vendorAccount

address payable

mintDoc

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

Arguments

Name
Type
Description

docAmountToMint

uint256

vendorAccount

address payable

redeemDoCRequest

function redeemDoCRequest(uint256 docAmount) public nonpayable

Arguments

Name
Type
Description

docAmount

uint256

⚠ This has been deprecated since the from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.

⚠ See the to understand how the behavior of this function has changed.

Proposal to remove leveraged positions
approved technical proposal
contracts/test-contracts/RevertingOnSend.sol
(address payable mocAddress)
()
setAcceptingMoney(bool accepting)
mintBProx(bytes32 bucket, uint256 bproxAmountToMint, address payable vendorAccount)
mintDoc(uint256 docAmountToMint, address payable vendorAccount)
redeemDoCRequest(uint256 docAmount)