Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
feat: bumping to 1.1.0 adding audited 0.0.4 contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Aug 9, 2023
1 parent aa84dc1 commit 83f4f67
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

The following repository hosts the source codes for `AlgoWorld Swapper`. Free and open-source swapper that allows for trustless transfers of assets on Algorand blockchain and extensibility.

> _**⚠️ NOTE: [algoworld-contracts](https://github.com/AlgoWorldNFT/algoworld-contracts) used by the swapper are not formally audited by accredited third parties. However, contracts are a basis for certain functionality on the [explorer](https://explorer.algoworld.io) platform and were created in collaboration with Solution Architect from Algorand (credits @cusma).**_
> _**⚠️ NOTE: [algoworld-contracts](https://github.com/AlgoWorldNFT/algoworld-contracts) used by the swapper are formally audited by [Tenset Security](https://www.tenset.io/en/smart-contract-audits). Contracts are a basis for certain functionality on the [explorer](https://explorer.algoworld.io) platform and were developed in collaboration with Solution Architect from Algorand (credits @cusma).**_
---

Expand Down
2 changes: 1 addition & 1 deletion api/swaps/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
algoworld-contracts @ git+https://github.com/algoworldnft/[email protected].0
algoworld-contracts==1.4.0
requests==2.28.1
cffi==1.15.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "algoworld-swapper",
"description": "Free and trustless ASA swapper, powered by Algorand ⚡️",
"version": "1.0.2",
"version": "1.1.0",
"private": true,
"author": "AlgoWorld <[email protected]>",
"license": "GPL-3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export const ALGOEXPLORER_URL = (chain: ChainType) => {
export const EMPTY_ASSET_IMAGE_URL = (gateway: IpfsGateway) => {
return `https://${gateway}/ipfs/QmXrsy5TddTiwDCXqGc2yzNowKs7WhCJfQ17rvHuArfnQp`;
};
export const LATEST_SWAP_PROXY_VERSION = `0.0.3`;
export const ALL_SWAP_PROXY_VERSIONS = [LATEST_SWAP_PROXY_VERSION, `0.0.1`];
export const LATEST_SWAP_PROXY_VERSION = `0.0.4`;
export const AWVT_ASSET_INDEX = (chain: ChainType) => {
return chain === ChainType.MainNet ? 827624831 : 100256867;
};
Expand All @@ -62,6 +61,7 @@ export const INCENTIVE_FEES: { [key: string]: number } = {
'0.0.1': 500_000,
'0.0.2': 500_000,
'0.0.3': INCENTIVE_FEE,
'0.0.4': INCENTIVE_FEE,
};
export const GET_INCENTIVE_FEE = (version: string, toAlgos = false) => {
const response = INCENTIVE_FEES[version] ?? INCENTIVE_FEE;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Backdrops/Backdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const LoadingBackdrop = ({
sx={{
color: `#fff`,
zIndex: (theme) => theme.zIndex.drawer + 1,
opacity: 0.3,
opacity: 0.1,
}}
open={isLoading}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialogs/AboutDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function AboutDialog({ open, changeState }: Props) {
<DialogContent dividers={true}>
<DialogContentText ref={descriptionElementRef} tabIndex={-1}>
{`AlgoWorld Swapper is a free and open-source tool for swapping assets on Algorand blockchain. Distributed under GPLv3 license.
Swaps are powered by Algorand Smart Signatures and were developed in collaboration with a Solution Architect from Algorand (credits: @cusma). AlgoWorld currently charges 0.05 Algo fee per swap, the fee is then periodically transfered to AWT/ALGO pair on Tinyman to increase liquidity for AlgoWorld Token.`}
Swaps are powered by Algorand Smart Signatures and were developed in collaboration with a Solution Architect from Algorand (credits: @cusma). Contracts are formally audited by Tenset Security. AlgoWorld currently charges 0.05 Algo fee per swap, the fee is then periodically transfered to AWT/ALGO pair on Tinyman to increase liquidity for AlgoWorld Token.`}
</DialogContentText>
<br />
<Accordion>
Expand Down
23 changes: 20 additions & 3 deletions src/pages/dashboard.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { SwapType } from '@/models/Swap';
import PageHeader from '@/components/Headers/PageHeader';
import { LATEST_SWAP_PROXY_VERSION } from '@/common/constants';
import { isSafeVersion } from '@/utils/isSafeVersion';
import Link from 'next/link';

export default function Dashboard() {
const pageContent = [
Expand All @@ -47,9 +48,25 @@ export default function Dashboard() {
<div>
<PageHeader
title="🏠 Dashboard"
description="⚠️ Creation of new swaps is disabled until the next version of AlgoWorld contracts is available, the update will introduce important security updates.
"
/>
description="Create atomic swaps powered by Algorand Smart Signatures.
Currently supports ASA to ASA and ASAs to Algo swaps."
>
<div style={{ textAlign: `center`, color: `#FFD700` }}>
To delete your legacy v0.0.3 swaps refer to{` `}
<Link
href="https://algoworld-swapper-ngzrf5xxr-algoworldexplorer.vercel.app/"
target="_blank"
rel="noopener noreferrer"
style={{
color: `#94ff8b`,
// This gives a yellowish color to the link text
textDecoration: `none`, // This removes the underline
}}
>
legacy page.
</Link>
</div>
</PageHeader>

<Container component="main" sx={{ pt: 5, pb: 15 }}>
<Stack
Expand Down

1 comment on commit 83f4f67

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for algoworld-swapper ready!

✅ Preview
https://algoworld-swapper-ab06hsp6g-algoworldexplorer.vercel.app

Built with commit 83f4f67.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.