Skip to content

Commit

Permalink
deploy on vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbc committed Feb 19, 2024
1 parent f8f60ca commit 4d546bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

Aqua is a liquid ETH staking application that allows users to stake their ETH and receive Interest Bearing Tokens (aqETH) in return. aqETH tokens represent a staked position in the ETH pool and accrue interest over time, offering a profitable and liquid staking solution.

## Live demo
https://aqua-kappa-six.vercel.app/

## Description Readme
## Description

[Backend README](./backend/README.md)

Expand Down
3 changes: 2 additions & 1 deletion backend/contracts/Aqua.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ contract Aqua is ERC20, Ownable {
mapping(address => uint256) public gainedInterests;
uint256 private constant INITIAL_EXCHANGE_RATE = 99; // Initial 1 ETH = 1 aqETH for simplicity
uint256 private constant EXCHANGE_RATE_BASE = 100; // Base value for calculations
uint256 private constant MINIMUM_EXCHANGE_RATE = 100;
uint256 private ASSET_STEP = 10e21; // 1,000 ETH in wei for rate adjustment
uint256 private RATE_DECREASE_PER_STEP = 1; // Decrease rate by 0.01 aqETH per ASSET_STEP

Expand Down Expand Up @@ -50,7 +51,7 @@ contract Aqua is ERC20, Ownable {


if (currentRate < 80) {
currentRate = minimumRate;
currentRate = MINIMUM_EXCHANGE_RATE;
}

return currentRate;
Expand Down
14 changes: 7 additions & 7 deletions backend/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ async function deployAqETHTokenContract() {
return aqETH;
}

async function deployAquaContract(aqETHAddress) {
async function deployAquaContract() {

console.log(`Start deploying Aqua staking contract...`, aqETHAddress);
console.log(`Start deploying Aqua staking contract...`);

const aqua = await hre.ethers.deployContract("Aqua", [aqETHAddress]);
const aqua = await hre.ethers.deployContract("Aqua");
await aqua.waitForDeployment();

console.log(`Aqua contract is deployed to ${aqua.target}`);
Expand All @@ -27,10 +27,10 @@ async function deployAquaContract(aqETHAddress) {
async function main() {


const aqua = await deployAquaContract(aqETH.target);

aqua.setAssetStep(10e21)
aqua.setRateDecreasePerStep(1)
const aqua = await deployAquaContract();
const assetStep = ethers.parseEther("1000");
aqua.setAssetStep(assetStep);
aqua.setRateDecreasePerStep(1);

}

Expand Down

0 comments on commit 4d546bd

Please sign in to comment.