Skip to content

Commit

Permalink
Hide btc stable pool (#580)
Browse files Browse the repository at this point in the history
* remove btc stable pool

* hide hbtc

* update asset domain

* update assets domain and add confirm modal
  • Loading branch information
xieqiancaosissi authored Aug 9, 2024
1 parent cf14eb9 commit 7e47d73
Show file tree
Hide file tree
Showing 23 changed files with 4,178 additions and 2,076 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/PopUp.tsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/meme/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Banner = () => {
<div className="relative flex items-center justify-center w-full mb-16">
<img
className="relative w-full z-10"
src="https://assets.ref.finance/images/memeBannerPc2.png"
src="https://img.ref.finance/images/memeBannerPc2.png"
/>
<div
className="absolute right-60 bottom-60 z-10 bg-bannerBtnBgColor py-3.5 px-5 flex items-center cursor-pointer"
Expand Down
8 changes: 4 additions & 4 deletions src/components/meme/MemeVoteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ function MemeVoteModal(props: any) {
<OprationButton
minWidth="7rem"
disabled={disabled}
// onClick={openMemeVoteConfirmModal}
onClick={stakeToken}
onClick={openMemeVoteConfirmModal}
// onClick={stakeToken}
className={`flex flex-grow items-center justify-center bg-greenLight text-boxBorder mt-6 rounded-xl h-12 text-base gotham_bold focus:outline-none ${
disabled || memeVoteLoading ? 'opacity-40' : ''
}`}
Expand Down Expand Up @@ -375,14 +375,14 @@ function MemeVoteModal(props: any) {
</div>
</div>
</div>
{/* {confirmIsOpen && (
{confirmIsOpen && (
<MemeVoteConfirmModal
isOpen={confirmIsOpen}
onRequestClose={closeMemeVoteConfirmModal}
onMemeVote={stakeToken}
delay_withdraw_sec={delay_withdraw_sec}
/>
)} */}
)}
</Modal>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/meme/MobileBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Banner = () => {
}
return (
<div className="relative flex items-center justify-center w-full">
<img src="https://assets.ref.finance/images/memeBannerMobile3.png" />
<img src="https://img.ref.finance/images/memeBannerMobile3.png" />
<div className="absolute right-6 bottom-10 z-10" onClick={showRule}>
<MobileBannerCoreBtnIconBg />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/meme/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1874,15 +1874,15 @@ export function CountdownMobileTitle(props: any) {

export function CountdownFinish(props: any) {
return (
<img {...props} src="https://assets.ref.finance/images/memeVotePc.png" />
<img {...props} src="https://img.ref.finance/images/memeVotePc.png" />
);
}

export function CountdownFinishMobile(props: any) {
return (
<img
{...props}
src="https://assets.ref.finance/images/memeVoteMobile.png"
src="https://img.ref.finance/images/memeVoteMobile.png"
/>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/meme/memeConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export function getMemeDataConfig(): any {
'neko.fakes.testnet':
'https://assets-global.website-files.com/627f75127980b632e08938a5/628668bb571921a4c96a08e3_niko.png',
'blackdragon.fakes.testnet':
'https://assets.ref.finance/images/blackdragon-icon.png',
'https://img.ref.finance/images/blackdragon-icon.png',
},
meme_winner_tokens: [
'lonk.fakes.testnet',
Expand Down Expand Up @@ -367,7 +367,7 @@ export function getMemeDataConfig(): any {
'neko.fakes.testnet':
'https://assets-global.website-files.com/627f75127980b632e08938a5/628668bb571921a4c96a08e3_niko.png',
'blackdragon.fakes.testnet':
'https://assets.ref.finance/images/blackdragon-icon.png',
'https://img.ref.finance/images/blackdragon-icon.png',
},
meme_winner_tokens: [
'lonk.fakes.testnet',
Expand Down Expand Up @@ -416,7 +416,7 @@ export function getMemeDataConfig(): any {
'ftv2.nekotoken.near':
'https://assets-global.website-files.com/627f75127980b632e08938a5/628668bb571921a4c96a08e3_niko.png',
'blackdragon.tkn.near':
'https://assets.ref.finance/images/blackdragon-icon.png',
'https://img.ref.finance/images/blackdragon-icon.png',
},
meme_winner_tokens: [
'blackdragon.tkn.near',
Expand Down
2 changes: 1 addition & 1 deletion src/components/orderlyAirdrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function OrderlyAirDropPop() {
content: `10% (100,000,000) $ORDER tokens are allocated to early users.
#NEAR traders need to bind their wallets before June 27th.
Check your allocation and bind here> (excludes current merit campaign):`,
src: 'https://assets.ref.finance/images/orderlyBanner2.jpg',
src: 'https://img.ref.finance/images/orderlyBanner2.jpg',
},
];
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/orderlyAirdropMobile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function OrderlyAirDropPop() {
content: `10% (100,000,000) $ORDER tokens are allocated to early users.
#NEAR traders need to bind their wallets before June 27th.
Check your allocation and bind here> (excludes current merit campaign):`,
src: 'https://assets.ref.finance/images/orderlyBanner2.jpg',
src: 'https://img.ref.finance/images/orderlyBanner2.jpg',
},
];
return (
Expand Down
2 changes: 1 addition & 1 deletion src/context/WalletSelectorContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const WalletSelectorContextProvider: React.FC<any> = ({ children }) => {
setupNearMobileWallet({
dAppMetadata: {
name: 'ref finance',
logoUrl: 'https://assets.ref.finance/images/REF-black-logo.png',
logoUrl: 'https://img.ref.finance/images/REF-black-logo.png',
url: 'https://app.ref.finance',
},
}),
Expand Down
259 changes: 258 additions & 1 deletion src/pages/Bridge/abi/auroraErc20.json
Original file line number Diff line number Diff line change
@@ -1 +1,258 @@
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimal","type":"uint8"},{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"adminDelegatecall","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"flags","type":"uint256"}],"name":"adminPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminReceiveEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminSendEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"adminSstore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToEthereum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"recipient","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToNear","outputs":[],"stateMutability":"nonpayable","type":"function"}]
[
{
"inputs": [
{ "internalType": "string", "name": "name", "type": "string" },
{ "internalType": "string", "name": "symbol", "type": "string" },
{ "internalType": "uint8", "name": "decimal", "type": "uint8" },
{ "internalType": "address", "name": "admin", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "admin",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "target", "type": "address" },
{ "internalType": "bytes", "name": "data", "type": "bytes" }
],
"name": "adminDelegatecall",
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "flags", "type": "uint256" }
],
"name": "adminPause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "adminReceiveEth",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "destination",
"type": "address"
},
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "adminSendEth",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "key", "type": "uint256" },
{ "internalType": "uint256", "name": "value", "type": "uint256" }
],
"name": "adminSstore",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "owner", "type": "address" },
{ "internalType": "address", "name": "spender", "type": "address" }
],
"name": "allowance",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "spender", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "approve",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "balanceOf",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "spender", "type": "address" },
{
"internalType": "uint256",
"name": "subtractedValue",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "spender", "type": "address" },
{ "internalType": "uint256", "name": "addedValue", "type": "uint256" }
],
"name": "increaseAllowance",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "account", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "mint",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "paused",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "transfer",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "sender", "type": "address" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "transferFrom",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "withdrawToEthereum",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes", "name": "recipient", "type": "bytes" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "withdrawToNear",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 7e47d73

Please sign in to comment.