-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staking panels and leaderboard (#1056)
* Get contract stake * Initial leaderboard version * voting call refactoring * Tier rewards updates * Leaderboard rendering fix * My staking components * Staking components logic done * Re-lock unlocking chunks * Unbonding modal * Bonus rewards calculation bug fix * Minor navigation refactoring * Display total stake * PropType fix * Total stake calculation fix
- Loading branch information
Showing
37 changed files
with
1,492 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<token-balance | ||
:balance="ethers.utils.formatEther(balance)" | ||
:text="text" | ||
:decimals="decimals" | ||
:symbol="nativeTokenSymbol" | ||
/> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { ethers } from 'ethers'; | ||
import TokenBalance from './TokenBalance.vue'; | ||
import { useNetworkInfo } from 'src/hooks'; | ||
export default defineComponent({ | ||
components: { | ||
TokenBalance, | ||
}, | ||
props: { | ||
balance: { | ||
type: String, | ||
required: true, | ||
}, | ||
text: { | ||
type: String, | ||
required: false, | ||
default: '', | ||
}, | ||
decimals: { | ||
type: Number, | ||
required: false, | ||
default: 3, | ||
}, | ||
}, | ||
setup() { | ||
const { nativeTokenSymbol } = useNetworkInfo(); | ||
return { nativeTokenSymbol, ethers }; | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.