Navigation

  • index
  • next |
  • Crayon Protocol 1.0 documentation »
  • Crayon Protocol

Crayon ProtocolΒΆ

Introduction

  • Intoduction
    • Main advantages to lenders
    • Main advantages to trade leveraging
    • Main advantages to asset financing
    • Crayon as infrastructure
    • Interaction with the protocol
    • Features
    • Contracts

Concepts

  • Concepts
    • Desks
    • Control
    • XCRAY
  • Glossary

Deployed

  • Deployed Desks
    • WETH desk
    • WBTC desk
    • USDC desk
    • ARB desk
    • GMX desk
    • RDNT desk

Lending

  • Lending
    • deposit()
    • balanceOf()
  • Withdrawing
    • withdraw()

Borrowing

  • Borrowing
    • borrow_then_post_longable()
    • post_longable_then_borrow()
    • borrow_fee()
    • Notes on borrowing
    • Extending loan
    • Managing Loans
    • Template Borrow Contracts
  • Repay a loan
    • withdraw_longable_then_repay()
    • repay()
  • Flash loans
    • flashloan()
    • flashloan_fee()
    • total_longable()
    • Template Flash Loan Contracts

Liquidation

  • Liquidation
    • liquidate()
    • liquidatable()
    • liquidation_bonus()

Desk Information

  • Desk Queries
    • base_coin()
    • base_coin_decimals()
    • flashloan_fee()
    • liquidation_bonus()
    • control_contract()
    • horizons()
    • total_liquidity()
    • total_loans()
    • total_reserved()
    • user_reserved()
    • user_loans()
    • num_horizons()
    • get_horizon_and_fee()
    • num_longables()
    • get_longable()

Rewards

  • Rewards
    • mint_all_reward_token()
    • mint_reward_token()
    • get_reward_parameters()
    • reward_balanceOf()
    • update_cumul_rewards()

Providers

  • Providers
    • register_provider()
    • unregister_provider()
    • is_registered_provider()
    • provider_percentage()

Governance

  • Governance
    • Current State
    • Future State
    • Governance Execution Functions
    • Monitoring Changes

Roadmap

  • Roadmap
    • Milestones

Next topic

Intoduction

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • Crayon Protocol 1.0 documentation »
  • Crayon Protocol
© Copyright 2023, Crayon Protocol Authors. Created using Sphinx 8.0.2.