Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Revenue sharing pool #7382

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
1827064
feat: Add Revanue Modal
ChefMomota Jul 10, 2023
3c9850b
feat: Add Revenue Sharing Component
ChefMomota Jul 10, 2023
4d61bad
feat: Complete Benefits Modal
ChefMomota Jul 10, 2023
7e090b2
feat: Add JoinRevenueModal
ChefMomota Jul 11, 2023
ecb057f
style: JoinRevenueModal Mobile
ChefMomota Jul 11, 2023
8ab5474
style: JoinRevenueModal Mobile
ChefMomota Jul 11, 2023
bd3564e
style: Update Icon color and Message padding
ChefMomota Jul 15, 2023
4bbe827
feat: Add basic info
ChefMomota Jul 18, 2023
4a6c7b7
feat: Calculate Cake Yield
ChefMomota Jul 18, 2023
750ee93
style: UI Update
ChefMomota Jul 18, 2023
7369fd8
feat: Add vCake and Revenue Sharing Pool contract
ChefMomota Jul 18, 2023
8bb9fe2
feat: Add vCake hook and JoinButton
ChefMomota Jul 18, 2023
a32a8fe
feat: RevenueSharing Data
ChefMomota Jul 19, 2023
95fa774
feat: Add ClaimButton
ChefMomota Jul 19, 2023
7101e3e
feat: Add useVCakeModal
ChefMomota Jul 19, 2023
8edf9ad
feat: Add Cake and Extend at View Benefits Modal
ChefMomota Jul 19, 2023
3652d0e
feat: JoinRevenueModal add button
ChefMomota Jul 19, 2023
77e77e3
fix: isInitialization
ChefMomota Jul 20, 2023
b41a77b
fix: Test
ChefMomota Jul 20, 2023
7531a52
fix: useVCakeModal
ChefMomota Jul 20, 2023
9c3bb31
feat: Update contract
ChefMomota Jul 25, 2023
1063214
feat: Update contract
ChefMomota Jul 25, 2023
6bc716c
feat: Update useVCakeModal
ChefMomota Jul 25, 2023
35460e6
chore: Test NEXT_PUBLIC_NODE_PRODUCTION
ChefMomota Jul 25, 2023
3d74d2e
use block timestamp
ChefMomota Jul 25, 2023
60f8afa
chore: Typo
ChefMomota Jul 25, 2023
20383ac
feat: Add failure text
ChefMomota Jul 25, 2023
5937ada
fix: yourSharePercentage
ChefMomota Jul 25, 2023
de02e7b
fix: SharingPoolNameCell
ChefMomota Jul 25, 2023
186c46c
style: Max height
ChefMomota Jul 25, 2023
4cbb0fd
fix: delApy
ChefMomota Jul 25, 2023
4ee008a
fix: Scrollbar
ChefMomota Jul 25, 2023
9c959e4
fix: Switch acc
ChefMomota Jul 26, 2023
6bfdd14
feat: Update UI
ChefMomota Jul 26, 2023
0d8c4b2
feat: Only in BSC
ChefMomota Jul 26, 2023
944461f
feat: useVCakeModal handle onDismiss
ChefMomota Jul 26, 2023
37a278e
fix: Crash
ChefMomota Jul 26, 2023
7633cbd
fix: Bug
ChefMomota Jul 26, 2023
796ef7f
feat: Remove fork chain
ChefMomota Jul 26, 2023
31f2ee6
chore: Switch to fork chain
ChefMomota Jul 27, 2023
b2ffc5a
feat: Hide View Benefits at IFO page
ChefMomota Jul 27, 2023
f19fc13
fix: Cake USD value
ChefMomota Jul 27, 2023
dc87f16
feat: For prod
ChefMomota Jul 27, 2023
f0acf80
feat: VCakeModal switch to ModalV2
ChefMomota Jul 27, 2023
504f422
feat: Add BenefitsTooltipsText
ChefMomota Jul 27, 2023
b5d1edc
feat: Update Your shares
ChefMomota Jul 27, 2023
7920f4a
fix: Bug
ChefMomota Jul 27, 2023
2e07f11
chore: Uppercase CAKE
ChefMomota Jul 27, 2023
7446b2b
update
ChefMomota Jul 27, 2023
c2f5613
chore: Add console
ChefMomota Jul 27, 2023
69904db
feat: Update tooltips text
ChefMomota Jul 28, 2023
25d30c5
feat: Update Next distribution logic
ChefMomota Jul 28, 2023
f1f35d6
feat: Revert Prod
ChefMomota Jul 31, 2023
2adc6e7
fix: Test
ChefMomota Jul 31, 2023
a1d34da
chore: Update prod contract address
ChefMomota Jul 31, 2023
6c6fe8d
feat: Update revenueSharingPool contract
ChefMomota Jul 31, 2023
6eadfb4
feat: Update URL link
ChefMomota Jul 31, 2023
411e300
feat: Remove unused code
ChefMomota Jul 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added apps/web/public/images/pool/lockCAKEbenefit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/images/pool/lockcaketooltip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
243 changes: 243 additions & 0 deletions apps/web/src/config/abi/revenueSharingPool.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
export const revenueSharingPoolABI = [
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint256', name: '_timestamp', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: '_tokens', type: 'uint256' },
],
name: 'LogCheckpointToken',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: '_recipient', type: 'address' },
{ indexed: false, internalType: 'uint256', name: '_amount', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: '_claimEpoch', type: 'uint256' },
{ indexed: false, internalType: 'uint256', name: '_maxEpoch', type: 'uint256' },
],
name: 'LogClaimed',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: false, internalType: 'uint256', name: '_amount', type: 'uint256' }],
name: 'LogFeed',
type: 'event',
},
{ anonymous: false, inputs: [], name: 'LogKilled', type: 'event' },
{
anonymous: false,
inputs: [{ indexed: false, internalType: 'bool', name: '_toggleFlag', type: 'bool' }],
name: 'LogSetCanCheckpointToken',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: '_caller', type: 'address' },
{ indexed: true, internalType: 'address', name: '_address', type: 'address' },
{ indexed: false, internalType: 'bool', name: '_ok', type: 'bool' },
],
name: 'LogSetWhitelistedCheckpointCallers',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' },
{ indexed: true, internalType: 'address', name: 'newOwner', type: 'address' },
],
name: 'OwnershipTransferred',
type: 'event',
},
{
inputs: [],
name: 'TOKEN_CHECKPOINT_DEADLINE',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'VCake',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'WEEK',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_user', type: 'address' },
{ internalType: 'uint256', name: '_timestamp', type: 'uint256' },
],
name: 'balanceOfAt',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'canCheckpointToken',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{ inputs: [], name: 'checkpointToken', outputs: [], stateMutability: 'nonpayable', type: 'function' },
{ inputs: [], name: 'checkpointTotalSupply', outputs: [], stateMutability: 'nonpayable', type: 'function' },
{
inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
name: 'claim',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address[]', name: '_users', type: 'address[]' }],
name: 'claimMany',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'emergencyReturn',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
name: 'feed',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_timestamp', type: 'uint256' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
],
name: 'injectReward',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'isKilled',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{ inputs: [], name: 'kill', outputs: [], stateMutability: 'nonpayable', type: 'function' },
{
inputs: [],
name: 'lastTokenBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'lastTokenTimestamp',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{ inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
{
inputs: [],
name: 'rewardToken',
outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'bool', name: '_newCanCheckpointToken', type: 'bool' }],
name: 'setCanCheckpointToken',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address[]', name: '_callers', type: 'address[]' },
{ internalType: 'bool', name: '_ok', type: 'bool' },
],
name: 'setWhitelistedCheckpointCallers',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'startWeekCursor',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'tokensPerWeek',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'totalSupplyAt',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'userEpochOf',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'weekCursor',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'weekCursorOf',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'whitelistedCheckpointCallers',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
] as const
Loading
Loading