Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
masterzorgon authored and k0beLeenders committed Feb 10, 2025
1 parent a946ace commit 527fd84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions apps/marginfi-v2-docs/src/app/faqs/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ In this guide, we will answer commonly asked questions regarding the marginfi pr
at <Button href="https://support.marginfi.com" variant="text"><>support.marginfi.com</></Button>.
</Note>

##

## How are interest rates calculated? {{ tag: '', label: '' }}

Interest rates are calculated based on market demand for borrowing and lending. For lenders, the interest rate increases with higher market utilization (more borrowing). For borrowers, the rate consists of a base rate plus additional fees. We currently use a simple interest model where interest accrues linearly over time, rather than compounding.
Expand Down
10 changes: 7 additions & 3 deletions apps/marginfi-v2-docs/src/app/rust-sdk/page.mdx
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
export const metadata = {
title: 'Rust (CLI) SDK',
title: '(Rust) CLI',
description:
'On this page, we’ll learn how to get started with the marginfi Rust CLI.',
'On this page, we’ll learn how to get started with the marginfi CLI.',
}

# The marginfi Rust CLI

With the marginfi <Button href="https://github.com/mrgnlabs/marginfi-v2/tree/main/clients/rust/marginfi-cli" variant="text"><>CLI tool</></Button>, you can interact with the marginfi protocol directly from your terminal, taking advantage of its borrowing and lending services. Built in Rust, this command-line interface simplifies the process of managing your marginfi activities. Whether you want to create a new bank, make deposits to existing banks, or perform other operations, the marginfi CLI provides a streamlined experience. {{ className: 'lead' }}

<Note>
Access the Rust (CLI) SDK source code using <Button href="https://github.com/mrgnlabs/marginfi-v2/tree/main/clients/rust/marginfi-cli" variant="text"><>this link</></Button>.
Access the (Rust) CLI source code using <Button href="https://github.com/mrgnlabs/marginfi-v2/tree/main/clients/rust/marginfi-cli" variant="text"><>this link</></Button>.
</Note>

---

## Installation {{ tag: '', label: '' }}

<Note>
If you are not using a Mac or Linux machine, we recommend installing everything via <Button href="https://learn.microsoft.com/en-us/windows/wsl/install" variant="text"><>WSL (Windows Subsystem for Linux)</></Button>.
</Note>

To get started, install the latest stable Rust toolchain and set it to default:

```bash
Expand Down
12 changes: 6 additions & 6 deletions apps/marginfi-v2-docs/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ export const navigation: Array<NavGroup> = [
{ title: 'Progressive Web App', href: '/pwa' },
],
},
{
title: 'White Papers',
links: [
{ title: '$YBX', href: '/ybx' },
],
},
// {
// title: 'White Papers',
// links: [
// { title: '$YBX', href: '/ybx' },
// ],
// },
]

export function Navigation(props: React.ComponentPropsWithoutRef<'nav'>) {
Expand Down

0 comments on commit 527fd84

Please sign in to comment.