Skip to content

fix typos #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent-wars-legacy/agent-war-tokenomics.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ For example, to create an agent for X account with 1 million followers, the mini

## Agent Keys

Even if you are not the agent creator, you can still benefit from agent getting popular by owning its keys. Agent key is standarad ERC-1155 token on Base chain, and it represents your shares of the agent.
Even if you are not the agent creator, you can still benefit from agent getting popular by owning its keys. Agent key is standard ERC-1155 token on Base chain, and it represents your shares of the agent.

The price of agent key increases with the increasing supply of the keys. The more buyers there are, the higher the price will become. The key selling income will go to agent creator, and 10% will be taken as trading fee.

Expand Down
2 changes: 1 addition & 1 deletion agent-wars-legacy/getting-started/buy-and-sell-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ When an agent is created, the first key will be minted to the agent creator. Onc
{% hint style="info" %}
The bonding curve is defined based on PHA token. The table above shows the corresponding USD value assuming PHA is at $0.15.

The smart contract supports buying and selling in ETH or other token. When using tokens other than PHA, it automatically uses Uniswap v3 on Base to swap against PHA. For example, when buying keys with ETH, the smart contract will receive ETH from the user, and instantly swap to the corresponding PHA based on the bonding curve.
The smart contract supports buying and selling in ETH or another token. When using tokens other than PHA, it automatically uses Uniswap v3 on Base to swap against PHA. For example, when buying keys with ETH, the smart contract will receive ETH from the user, and instantly swap to the corresponding PHA based on the bonding curve.

Swapping is based on Uniswap. So the process may subject to additional trading fee, price fluctuation, and potential MEV risk.
{% endhint %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ PHA is bridged from Ethereum to Base chain via [Wormhole](https://wormhole.com/)

Note that the bridging operation between Ethereum and Base takes around 15 mins. To get PHA on Ethereum, you can buy it from centralized exchanges (Binance, OKX, Kucoin, etc), and decentralized exchanges (Uniswap, 1inch, etc).

If you closed the web page after finishing the transfer step but haven't claimed it on the destination blockchain, you can use the "Redeem" tab in the Portal Bridge (Advanced Tool). You will need to find the tx id of your transfering tx from a blockchain explorer. The redeem tool will recover the transaction and guide you to redeem the PHA on the destination chain. Learn more at [their official docs](https://portalbridge.com/docs/tutorials/how-to-use-recovery-workflow).
If you closed the web page after finishing the transfer step but haven't claimed it on the destination blockchain, you can use the "Redeem" tab in the Portal Bridge (Advanced Tool). You will need to find the tx id of your transferring tx from a blockchain explorer. The redeem tool will recover the transaction and guide you to redeem the PHA on the destination chain. Learn more at [their official docs](https://portalbridge.com/docs/tutorials/how-to-use-recovery-workflow).

</details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ If we don't see a `finish_reason: "stop"` within our five iterations, we'll retu

## Update GET() and POST()

Now we need to call our `agent(openai, userInput)` in our `GET` and `POST` calls that will pass in a users prompt that can be accessed in the `chatQuery` property. The code change is minimial and our functions look like the following.
Now we need to call our `agent(openai, userInput)` in our `GET` and `POST` calls that will pass in a users prompt that can be accessed in the `chatQuery` property. The code change is minimal and our functions look like the following.

```typescript
async function GET(req: Request): Promise<Response> {
Expand Down
2 changes: 1 addition & 1 deletion ai-agent-contract-legacy/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Logs can be checked by running the following `curl` command:
curl 'http://127.0.0.1:8000/logs/all/local'
```

You should see your logs outputed in your terminal like below.
You should see your logs outputted in your terminal like below.

```sh
2024-09-14T03:22:05.542Z [82570760-98d3-4dda-9f82-eb69a3a5e79a] [REPORT] END Request: Duration: 222ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ If we don't see a `finish_reason: "stop"` within our five iterations, we'll retu

## Update GET() and POST()

Now we need to call our `agent(openai, userInput)` in our `GET` and `POST` calls that will pass in a users prompt that can be accessed in the `chatQuery` property. The code change is minimial and our functions look like the following.
Now we need to call our `agent(openai, userInput)` in our `GET` and `POST` calls that will pass in a users prompt that can be accessed in the `chatQuery` property. The code change is minimal and our functions look like the following.

```typescript
async function GET(req: Request): Promise<Response> {
Expand Down