Documentation
SocialsStatisticsLaunch App
  • Welcome to Mars Protocol
  • Getting Started
    • How to set up a Wallet
    • Connect your wallet
    • Using a Credit Account
  • Credit Accounts
  • Perpetual Futures (Perps)
    • Perps Vault (Counterparty Vault)
    • Funding Rate Mechanism
    • Price Impact
    • Open Interest Caps
    • Vault Solvency Protection
    • Health Factor
    • Liquidations
  • Spot & Margin Trading
  • Lending & Borrowing
  • Leveraged Yield Farming
  • High Leverage Strategies
  • Managed Vaults
    • Creating a Vault
      • How to Resume Vault Creation After Failed Transaction
    • Managing a Vault
    • Depositing into Vault
  • Risk Methodology
    • Asset Listing
    • Protocol Risk Framework
    • Perps Risk Framework
      • Maximum Leverage & LTVs
      • SkewScale
      • Open Interest Caps
      • Maximum Funding Velocity
      • Mitigating Risks of Static Parameters
    • Deposit Caps Risk Framework
  • Governance
    • MARS Token
  • Smart Contracts
    • Address Provider
    • Account NFT
    • Credit Manager
    • Health
    • Incentives
    • Oracle
    • Params
    • Red Bank
    • Rewards Collector
    • Swapper
    • Zapper
    • Perps
  • Brand kit
    • The Mars Brand
  • Legal
    • Mars FUD Bible
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
Powered by GitBook
On this page
  • Deployments
  • Types
  • Queries
  • Methods
Edit on GitHub
Export as PDF
  1. Smart Contracts

Rewards Collector

The Rewards Collector Contract provides all the needed methods to withdraw generated fees and revenue from the Mars Protocol. It also handles swapping the collected revenue/fees to a specified asset.

Last updated 25 days ago

Deployments

Neutron:

Osmosis:


Types

The types of the Rewards Collector Contract can be found .


Queries

config

Returns the Contracts configuration.

Query message
{
    config: {}    
}
Return output
{
    data: {
        address_provider: string
        channel_id: string
        fee_collector_config: {
            target_denom: string
            transfer_type: 'ibc' | 'bank'
        }
        owner?: string | null
        proposed_new_owner?: string | null
        revenue_share_config: {
            target_denom: string
            transfer_type: 'ibc' | 'bank'
        }
        revenue_share_tax_rate: Decimal
        safety_fund_config: {
            target_denom: string
            transfer_type: 'ibc' | 'bank'
        }
        safety_tax_rate: Decimal
        slippage_tolerance: Decimal
        timeout_seconds: number
    }
}

Methods

The rewards collector contract is operated by a bot used by the Mars Protocol contributors. There is no need for third party contributors to run or execute the methods of the rewards collector. That's why they are not part of the documentation.

neutron1h4l6rvylzcuxwdw3gzkkdzfjdxf4mv2ypfdgvnvag0dtz6x07gps6fl2vm
osmo1urvqe5mw00ws25yqdd4c4hlh8kdyf567mpcml7cdve9w08z0ydcqvsrgdy
here