From 3320586b5736501669ee19a60858a7dd385eb9ee Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Sun, 07 Apr 2024 16:12:49 +0800
Subject: [PATCH] 每人每日质押设置
---
src/main/resources/templates/febs/views/modules/banner/coinPrice.html | 161 +++++++++++++++++++++++++++++++----------------------
1 files changed, 93 insertions(+), 68 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/banner/coinPrice.html b/src/main/resources/templates/febs/views/modules/banner/coinPrice.html
index 4458387..cf8d73d 100644
--- a/src/main/resources/templates/febs/views/modules/banner/coinPrice.html
+++ b/src/main/resources/templates/febs/views/modules/banner/coinPrice.html
@@ -186,13 +186,24 @@
// const providers = new ethers.providers.JsonRpcProvider('https://https://bsc-testnet.public.blastapi.io/');
async function getBalanceOf(address){
const contract = {
- gfaCoin: '0x8F62AdD572607477342f8B088DCf52aB5E88345c',
+ gfaCoin: '0x33107d4502C8C59a8b96834c76d427B67AC1d873',
};
const gfaContract = new ethers.Contract(
contract.gfaCoin,
[
{
- "inputs": [],
+ "inputs": [
+ {
+ "internalType": "string[]",
+ "name": "symbolParam",
+ "type": "string[]"
+ },
+ {
+ "internalType": "address[]",
+ "name": "adr",
+ "type": "address[]"
+ }
+ ],
"stateMutability": "nonpayable",
"type": "constructor"
},
@@ -252,13 +263,6 @@
"type": "event"
},
{
- "inputs": [],
- "name": "burnLiquidityToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
"inputs": [
{
"internalType": "address",
@@ -279,13 +283,6 @@
"type": "bool"
}
],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "generateReward",
- "outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
@@ -317,18 +314,12 @@
"inputs": [
{
"internalType": "uint256",
- "name": "amount",
+ "name": "startState",
"type": "uint256"
}
],
- "name": "mint",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
+ "name": "launch",
+ "outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
@@ -378,13 +369,6 @@
},
{
"inputs": [],
- "name": "releaseFixCoin",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
@@ -394,31 +378,21 @@
"inputs": [
{
"internalType": "uint256",
- "name": "volumn",
+ "name": "mineTime",
"type": "uint256"
- }
- ],
- "name": "setPawnVolumn",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "setStart",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
+ },
{
"internalType": "uint256",
- "name": "amount",
+ "name": "exchangeTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "burnTime",
"type": "uint256"
}
],
- "name": "toPawn",
+ "name": "setTimes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
@@ -498,19 +472,6 @@
"type": "bool"
}
],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
@@ -656,6 +617,25 @@
"type": "address"
}
],
+ "name": "getRewardHisotryTotal",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "adr",
+ "type": "address"
+ }
+ ],
"name": "getRewardHistory",
"outputs": [
{
@@ -663,6 +643,21 @@
{
"internalType": "uint256",
"name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "goldAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "coinAmount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "price",
"type": "uint256"
},
{
@@ -680,7 +675,13 @@
"type": "function"
},
{
- "inputs": [],
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "adr",
+ "type": "address"
+ }
+ ],
"name": "getRewardList",
"outputs": [
{
@@ -702,6 +703,11 @@
},
{
"internalType": "uint256",
+ "name": "price",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
"name": "timestemp",
"type": "uint256"
}
@@ -716,12 +722,12 @@
},
{
"inputs": [],
- "name": "getRouterAddress",
+ "name": "getTotalMineCnt",
"outputs": [
{
- "internalType": "address",
+ "internalType": "uint256",
"name": "",
- "type": "address"
+ "type": "uint256"
}
],
"stateMutability": "view",
@@ -729,6 +735,25 @@
},
{
"inputs": [],
+ "name": "getTotalRemainCnt",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "adr",
+ "type": "address"
+ }
+ ],
"name": "getWaitRelease",
"outputs": [
{
--
Gitblit v1.9.1