Skip to content

Commit

Permalink
Add cardano ssn (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan-zilliqa authored Sep 17, 2024
1 parent dd4a604 commit 5c5006a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion products/zillion/src/components/ssn-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ function SsnTable(props: any) {
status: "BELOW MIN.STAKE"
};

const cardanoSSN: SsnStats = {
address: "Coming soon",
name: "Cardano SSN",
apiUrl: "Coming soon",
stakeAmt: "0",
bufferedDeposits: "0",
commRate: "4",
commReward: "0",
delegNum: "0",
status: "BELOW MIN.STAKE"
};

ssnList = [...ssnList, googleSSN];
const handleStake = (name: string, address: string, commRate: string) => {
// set dashboard state variable
Expand All @@ -130,7 +142,11 @@ function SsnTable(props: any) {

var array = [...ssnList];

array= array.sort((a, b) => parseInt(b.stakeAmt) - parseInt(a.stakeAmt));
array = array.sort((a, b) => parseInt(b.stakeAmt) - parseInt(a.stakeAmt));

array.unshift(cardanoSSN);



const columns = useMemo(
() => [
Expand Down

0 comments on commit 5c5006a

Please sign in to comment.