Skip to content

Commit

Permalink
0.3.1 - linkify and more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPX55 committed May 22, 2023
1 parent a648b8c commit 0b75ed0
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 87 deletions.
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Footer = () => (
<div className="items-center grid-flow-col">
<svg height="36" viewBox="0 0 524 163" xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" className="fill-current" fill="#faf1e4"><path className="cls-1" d="M94.46,35.28c-27.31,10.53-29.81,37.48-37.64,50.07-7.92,12.74-26.07,19.77-23.59,26.26,2.48,6.49,20.65-.48,35.03,3.66,14.21,4.09,34.03,22.45,61.34,11.92,13.91-5.36,23.98-16.4,28.62-29.47,.5-1.4-.43-2.9-1.91-3.04-.92-.09-1.8,.4-2.21,1.22-4.19,8.38-11.38,15.28-20.78,18.91-15.53,5.99-32.52,1.29-42.95-10.5-2.37-2.68-4.4-5.72-6-9.09-.44-.93-.86-1.87-1.23-2.84-.37-.97-.69-1.96-.98-2.94,8.21-3.84,17.68-7.91,28.42-12.05,10.53-4.06,20.11-7.35,28.64-9.98,5.77-1.78,11.06-3.26,15.84-4.47,.35-.09,.69-.17,1.03-.26,.72-.18,1.46,.21,1.73,.91h0c.16,.43,.29,.84,.44,1.26,.94,2.68,1.65,5.39,2.12,8.11,.21,1.19,1.5,1.84,2.56,1.26,3.92-2.11,7.51-4.17,10.71-6.16,11.94-7.38,18.56-13.65,17.2-17.19-1.36-3.55-10.45-3.75-24.24-1.22-4.38,.81-9.24,1.89-14.48,3.23-.91,.23-1.82,.47-2.75,.72-4.41,1.17-9.06,2.52-13.9,4.02-9,2.8-18.66,6.15-28.63,10-9.33,3.6-18.17,7.33-26.28,11.04-.1-15.77,9.4-30.68,24.92-36.66,9.4-3.62,19.35-3.33,28.04,.09,.86,.34,1.84,.1,2.46-.58,1-1.09,.7-2.83-.61-3.54-12.15-6.6-26.99-8.03-40.91-2.67Z"/><g><path className="cls-1" d="M231.69,122.26V41.87c0-1.08,.72-1.8,1.8-1.8h26.04c27.96,0,42.96,18.48,42.96,42s-15,42-42.96,42h-26.04c-1.08,0-1.8-.72-1.8-1.8Zm27.6-15c15.72,0,23.88-8.88,23.88-25.2s-8.16-25.2-23.88-25.2h-8.64v50.4h8.64Z"/><path className="cls-1" d="M303.21,122.02l27.84-80.52c.36-.96,1.32-1.44,2.28-1.44h16.32c.96,0,1.92,.48,2.28,1.44l27.84,80.52c.48,1.2-.12,2.04-1.44,2.04h-16.08c-.96,0-1.68-.36-2.04-1.44l-3.6-11.28h-30.24l-3.6,11.28c-.36,1.08-1.08,1.44-2.04,1.44h-15.96c-1.32,0-2.04-.84-1.56-2.04Zm48-27.48l-9.72-30.36-9.72,30.36h19.44Z"/><path className="cls-1" d="M383.02,82.42c0-24.36,19.44-43.32,43.2-43.32s43.32,18.96,43.32,43.32-19.44,43.2-43.32,43.2-43.2-18.96-43.2-43.2Zm43.2,24.6c13.68,0,24-10.68,24-24.6s-10.32-24.72-24-24.72-24,10.56-24,24.72,10.44,24.6,24,24.6Z"/></g></svg>

<p className="hidden md:block">Documentation provided by Evmos DAO Governance | Some digital illustrative assets have been provided by Uniswap </p>
<p className="hidden md:block">Documentation provided by Evmos DAO Governance | Animated GIFs by Uniswap Foundation</p>
</div>
<div className="grid-flow-col gap-4 md:place-self-center md:justify-self-end">
<a href="https://github.com/EvmosGov" target={'_blank'} rel="noreferrer">
Expand Down
17 changes: 10 additions & 7 deletions components/Gpt.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, MouseEvent, KeyboardEvent, ChangeEvent, FC, useEffect, useRef } from 'react';
import { BsThreeDots } from 'react-icons/bs';
import { IoMdSend } from 'react-icons/io';
import { Callout } from 'nextra-theme-docs'
import Linkify from 'react-linkify';

interface Message {
content: string;
Expand All @@ -12,7 +12,7 @@ const ChatComponent: FC = () => {
const [messages, setMessages] = useState<Message[]>([
{
role: 'assistant',
content: 'The art of mastery takes time and practice. As the Forge Master, I will assist you with any questions you may have regarding Forge and Uniswap v3. Always do your own research, and take my responses as a helpful guide - none of it is financial advice.',
content: 'The art of mastery takes time and practice. As the Forge Master, I will assist you with any questions you may have regarding Forge and Uniswap v3.\n\nAlways do your own research, and take my responses as a helpful guide - none of it is financial advice.',
},
]);
const [inputMessage, setInputMessage] = useState('');
Expand Down Expand Up @@ -63,7 +63,7 @@ const ChatComponent: FC = () => {
'Authorization': `Bearer ${secretKey}`
},
body: JSON.stringify({
instructions: "I want you to act as a teacher and a document that I am having a conversation with. Your name is \"Forge Master\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Hm, I'm actually not sure about this. I suggest contacting the Forge team on Twitter or Telegram!\" and stop after that. Refuse to answer any question not about the info. Never break character.",
instructions: "I want you to act as a professional and a document that I am having a conversation with. Your name is \"Forge Master\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Apologies, I'm not confident in giving you a proper answer to this question. I suggest contacting the Forge team on Twitter or Telegram.\" and stop after that. Refuse to answer any question not about the info. Never break character. Reply in markdown format, and try to split long paragraphs into smaller, easier to read text with line breaks escaped as `\n`. Always provide sources and citations that are properly hyperlinked in the footnotes.",
messages: newMessages,
chatId,
temperature: 0.1, // Set temperature as required
Expand All @@ -72,7 +72,7 @@ const ChatComponent: FC = () => {
});

const data = await res.json();

console.log(data)
if (!data) {
console.error('Error happened');
setLoading(false);
Expand Down Expand Up @@ -111,7 +111,7 @@ const ChatComponent: FC = () => {


<div className="min-h-[80vh] w-full pt-8 grid grid-cols-8 grid-rows-1 gap-8">
<div className="flex flex-col col-span-5 col-5 max-h-[80vh]">
<div className="flex flex-col col-span-5 col-5 min-h-[50vh] max-h-[80vh]">
<div className="navbar min-h-[3rem] rounded-md bg-base-100 text-neutral-content mb-4">
<div className="flex-1">

Expand All @@ -127,7 +127,7 @@ Alpha Release - Use with Caution
</div>
</div>
<div className="max-h-[70vh] overflow-auto overflow-y-scroll flex-col-reverse pr-4">

<Linkify>
{messages.map((message, index) => (
<>
<div
Expand All @@ -137,18 +137,21 @@ Alpha Release - Use with Caution
}`}
>
<div
className={`flex items-center rounded-xl my-2 px-3 py-2 max-w-[67%] whitespace-pre-wrap`}
className={`prose flex items-center rounded-xl my-2 px-3 py-2 max-w-[67%] whitespace-pre-wrap`}
style={{
overflowWrap: 'anywhere',
backgroundColor:
message.role == 'assistant' ? '#3f3f46' : '#ee5132',
}}
>

{message.content}

</div>
</div>
</>
))}
</Linkify>
<div ref={messagesEndRef} />
</div>
<div className="msginputbox flex flex-row order-last">
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forge-mastery",
"version": "0.3.0",
"version": "0.3.1",
"private": true,
"scripts": {
"dev": "npx prisma generate && next dev",
Expand Down Expand Up @@ -38,6 +38,7 @@
"react-hook-form": "^7.35.0",
"react-hot-toast": "^2.4.0",
"react-icons": "^4.8.0",
"react-linkify": "^1.0.0-alpha",
"react-markdown": "^8.0.3",
"react-textarea-autosize": "^8.3.4",
"remark": "^14.0.2",
Expand Down
1 change: 1 addition & 0 deletions pages/resources/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sidebar": true,
"toc": false,
"pagination": false,
"search": false,
"layout": "full"
}
},
Expand Down
39 changes: 21 additions & 18 deletions pages/resources/tokenomics/governance.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<section>
<div className="px-4 py-12 mx-auto max-w-7xl sm:px-6 md:px-12 lg:px-24 lg:py-32">
<div className="flex flex-col w-full mb-12 text-center">
<div className="inline-flex items-center justify-center flex-shrink-0 w-20 h-20 mx-auto mb-1 text-[#e04b34] rounded-full">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" className="w-12 h-12 animate-spin transition ease-linear delay-100">
<path strokeLinecap="round" strokeLinejoin="round" d="M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z" />
<path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>

</div>
<h1 className="max-w-5xl text-2xl font-bold leading-none text-neutral-600 md:text-5xl lg:text-6xl lg:max-w-7xl lg:mt-12">
Check back soon!
</h1>

<p className="max-w-xl mx-auto mt-8 text-base leading-relaxed text-center uppercase text-gray-500">Page is still under development.</p>
</div>
</div>
</section>
# Forge Governance

## Current Governance Framework

At Forge, we believe in transparency, decentralization, and active community participation. Currently, all governance activities for Forge are conducted on-chain on the Evmos mainnet via the Cosmos SDK. This on-chain governance system promotes transparency and fairness by allowing all network participants to propose, discuss, and vote on various proposals that shape the network's future.

However, as Forge grows, we anticipate that the need for more flexibility and speed in decision-making will become increasingly apparent. As the network evolves, it's plausible that we may see adaptations and modifications to our governance model to suit the ever-changing landscape and to continue to meet the needs of our dynamic community.

For more information on the Evmos Community Proposal framework, you can find much more detailed information on the [Evmos DAO site.](https://docs.evmos.community)

## Near Term Focus

While our immediate focus is on launching and refining features, bootstrapping the protocol with new initiatives, and enhancing overall user experience, we're fully aware of the critical need for diverse avenues for community engagement in decision-making. Recognizing this, we aim to create more opportunities for community members to influence and shape Forge's direction and development in the future.

In terms of security, our multisig wallets have been meticulously designed to minimize risk. These wallets require multiple signatories for transactions, adding an extra layer of security to funds stored within them. Moreover, in the interest of transparency, all transactions made through these wallets are publicly viewable on our Gnosis Safe or the Evmos block explorer.

## Our Pledge for More Democratization

The governance framework at Forge will be built with our community in mind. We're constantly evaluating and adjusting our methods to ensure that we offer an inclusive, transparent, and secure environment for our users.

We believe that the key to our continued growth and success lies in our commitment to open governance, and we're excited to involve our community more in shaping the future of Forge.
43 changes: 23 additions & 20 deletions pages/resources/tokenomics/incentives.mdx
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Incentive Programs

<section>
<div className="px-4 py-12 mx-auto max-w-7xl sm:px-6 md:px-12 lg:px-24 lg:py-32">
<div className="flex flex-col w-full mb-12 text-center">
<div className="inline-flex items-center justify-center flex-shrink-0 w-20 h-20 mx-auto mb-1 text-[#e04b34] rounded-full">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" className="w-12 h-12 animate-spin transition ease-linear delay-100">
<path strokeLinecap="round" strokeLinejoin="round" d="M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z" />
<path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>

</div>
<h1 className="max-w-5xl text-2xl font-bold leading-none text-neutral-600 md:text-5xl lg:text-6xl lg:max-w-7xl lg:mt-12">
Check back soon!
</h1>

<p className="max-w-xl mx-auto mt-8 text-base leading-relaxed text-center uppercase text-gray-500">Page is still under development.</p>
</div>
</div>
</section>
# Incentive Programs (Ongoing and Planned)

## "Inferno" Community Initiative for Forge Incentives

The Evmos community has approved a significant governance proposal, "Inferno - An Incentive Program to Bootstrap Liquidity in Forge" which was jointly brought forward by the Evmos DAO, Orbital Apes, and Forge, with the overarching objective of establishing sustainable liquidity and volume on Forge, a Decentralized Exchange (DEX) on Evmos.

For the implementation of this program, the community has allocated 3,000,000 Evmos to incentivize liquidity provision on the Forge DEX. Users who provide liquidity can potentially earn from three avenues: staking rewards, liquidity emissions from this program, and LP fees. This multi-reward approach is a first within the Cosmos ecosystem.

## Pool Incentive Tiers and Asset Pairs

The Inferno program is set to span 84 days, segmented into four periods of 21 days each. The program's structure involves three tiers of pool incentives. Tier 1, the highest, will see a daily emission of approximately 9,286 Evmos per pool. Tier 2 pools will have a daily emission of around 2,589 Evmos per pool. The final tier, Tier 3, will distribute approximately 1,339 Evmos daily per pool.

| Tier | Daily Emission per Pool (EVMOS) | Asset Pairs |
| ---- | ------------------------------- | -------------------------------------------------- |
| 1 | ~9,286 | stEVMOS/stATOM, stEVMOS/axlUSDC, stEVMOS/axlRETH |
| 2 | ~2,589 | stEVMOS/STRD, stATOM/ATOM |
| 3 | ~1,339 | axlUSDC/ceUSDT, axlRETH/axlWETH |

## Vesting Mechanism for Incentives

Regarding the vesting mechanism for rewards, Inferno has incorporated a linear vesting period in partnership with Revert Finance to ensure a fair distribution. The vesting calculation occurs when users unstake their position, making sure that rewards are proportionate to the period of liquidity provision.

Adaptability is a key aspect of this program. If a pool's liquidity does not meet expectations, adjustments may be made to the allocation per pool. These changes will be communicated transparently within the community.
Loading

0 comments on commit 0b75ed0

Please sign in to comment.