RXG Staking
Earn RXG for using the TacVue Platform
RXG Staking is a risk-free way of earning RXG for locking your RXG into the TacVue vault. Members can withdraw their rewards at any time which ensures that the protocol rewards engagement rather than exploitation.
When a member stakes their RXG, the amount and date is recorded in order to determine their daily rebase. At each rebase, a smart contract determines the amount to be distributed to each Staker. The smart contract determines the output by user by finding their proportional stake to the rest of the pool, and multiplying this by the daily RXG output amount.
What's a Rebase?
A rebase is a mechanism by which your staked RXG balance is calculated in proportion to the total pool staked. A rebase is the time that RXG earnings are calculated and offered to each Staker. Rebases are collected on an ongoing basis.
Technical Summary
OFF CHAIN DATA: precalculated and posted to blockchain
Sigmoid = s = 1 / (1 + np.exp(-x / k))
RewardTable = 1000 day array initialized by +=2,-=2
ContractTable = RewardTable passed through Sigmoid to get desired emissions cycle
(note after day 1000 emission stays constant @ 50% (501) and does not decrease to 0, restarting the stake will restart the emission cycle)
ON CHAIN DATA:
ContractTable is passed by the activator to the Avax Staking contract during creation:
[501, 503, 506, 508, 511, 513, 516, 518, 521, 523, 526, 528, 531, 533, 536, 538, 541, 543, 546, 548, 551, 553, 556, 558, 560, 563, 565, 568, 570, 573, 575, 578, 580, 582, 585, 587, 590, 592, 595, 597, 599, 602, 604, 607, 609, 611, 614, 616, 618, 621, 623, 625, 628, 630, 632, 635, 637, 639, 642, 644, 646, 649, 651, 653, 655, 658, 660, 662, 664, 667, 669, 671, 673, 675, 678, 680, 682, 684, 686, 688, 691, 693, 695, 697, 699, 701, 703, 705, 707, 709, 711, 714, 716, 718, 720, 722, 724, 726, 728, 730, 732, 733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 754, 756, 758, 760, 762, 764, 765, 767, 769, 771, 772, 774, 776, 778, 779, 781, 783, 784, 786, 788, 790, 791, 793, 794, 796, 798, 799, 801, 802, 804, 806, 807, 809, 810, 812, 813, 815, 816, 818, 819, 821, 822, 824, 825, 827, 828, 829, 831, 832, 834, 835, 836, 838, 839, 840, 842, 843, 844, 846, 847, 848, 850, 851, 852, 853, 855, 856, 857, 858, 859, 861, 862, 863, 864, 865, 867, 868, 869, 870, 871, 872, 873, 874, 875, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 897, 898, 899, 900, 901, 902, 903, 904, 905, 905, 906, 907, 908, 909, 910, 910, 911, 912, 913, 914, 914, 915, 916, 917, 917, 918, 919, 920, 920, 921, 922, 923, 923, 924, 925, 925, 926, 927, 927, 928, 929, 929, 930, 931, 931, 932, 933, 933, 934, 934, 935, 936, 936, 937, 937, 938, 939, 939, 940, 940, 941, 941, 942, 942, 943, 944, 944, 945, 945, 946, 946, 947, 947, 948, 948, 949, 949, 950, 950, 950, 951, 951, 952, 952, 953, 953, 954, 954, 954, 955, 955, 956, 956, 957, 957, 957, 958, 958, 959, 959, 959, 960, 960, 961, 961, 961, 962, 962, 962, 963, 963, 963, 964, 964, 964, 965, 965, 965, 966, 966, 966, 967, 967, 967, 968, 968, 968, 969, 969, 969, 969, 970, 970, 970, 971, 971, 971, 971, 972, 972, 972, 973, 973, 973, 973, 974, 974, 974, 974, 975, 975, 975, 975, 975, 976, 976, 976, 976, 977, 977, 977, 977, 978, 978, 978, 978, 978, 979, 979, 979, 979, 979, 980, 980, 980, 980, 980, 981, 981, 981, 981, 981, 981, 982, 982, 982, 982, 982, 982, 983, 983, 983, 983, 983, 983, 984, 984, 984, 984, 984, 984, 985, 985, 985, 985, 985, 985, 985, 986, 986, 986, 986, 986, 986, 986, 986, 987, 987, 987, 987, 987, 987, 987, 987, 988, 988, 988, 988, 988, 988, 988, 988, 988, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 991, 991, 991, 991, 991, 991, 991, 991, 991, 991, 991, 991, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 993, 993, 993, 993, 993, 993, 993, 993, 993, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, 991, 991, 991, 991, 991, 991, 991, 991, 991, 991, 991, 991, 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, 989, 989, 989, 989, 989, 989, 989, 989, 989, 989, 988, 988, 988, 988, 988, 988, 988, 988, 988, 987, 987, 987, 987, 987, 987, 987, 987, 986, 986, 986, 986, 986, 986, 986, 986, 985, 985, 985, 985, 985, 985, 985, 984, 984, 984, 984, 984, 984, 983, 983, 983, 983, 983, 983, 982, 982, 982, 982, 982, 982, 981, 981, 981, 981, 981, 981, 980, 980, 980, 980, 980, 979, 979, 979, 979, 979, 978, 978, 978, 978, 978, 977, 977, 977, 977, 976, 976, 976, 976, 975, 975, 975, 975, 975, 974, 974, 974, 974, 973, 973, 973, 973, 972, 972, 972, 971, 971, 971, 971, 970, 970, 970, 969, 969, 969, 969, 968, 968, 968, 967, 967, 967, 966, 966, 966, 965, 965, 965, 964, 964, 964, 963, 963, 963, 962, 962, 962, 961, 961, 961, 960, 960, 959, 959, 959, 958, 958, 957, 957, 957, 956, 956, 955, 955, 954, 954, 954, 953, 953, 952, 952, 951, 951, 950, 950, 950, 949, 949, 948, 948, 947, 947, 946, 946, 945, 945, 944, 944, 943, 942, 942, 941, 941, 940, 940, 939, 939, 938, 937, 937, 936, 936, 935, 934, 934, 933, 933, 932, 931, 931, 930, 929, 929, 928, 927, 927, 926, 925, 925, 924, 923, 923, 922, 921, 920, 920, 919, 918, 917, 917, 916, 915, 914, 914, 913, 912, 911, 910, 910, 909, 908, 907, 906, 905, 905, 904, 903, 902, 901, 900, 899, 898, 897, 897, 896, 895, 894, 893, 892, 891, 890, 889, 888, 887, 886, 885, 884, 883, 882, 881, 880, 879, 878, 877, 875, 874, 873, 872, 871, 870, 869, 868, 867, 865, 864, 863, 862, 861, 859, 858, 857, 856, 855, 853, 852, 851, 850, 848, 847, 846, 844, 843, 842, 840, 839, 838, 836, 835, 834, 832, 831, 829, 828, 827, 825, 824, 822, 821, 819, 818, 816, 815, 813, 812, 810, 809, 807, 806, 804, 802, 801, 799, 798, 796, 794, 793, 791, 790, 788, 786, 784, 783, 781, 779, 778, 776, 774, 772, 771, 769, 767, 765, 764, 762, 760, 758, 756, 754, 753, 751, 749, 747, 745, 743, 741, 739, 737, 735, 733, 732, 730, 728, 726, 724, 722, 720, 718, 716, 714, 711, 709, 707, 705, 703, 701, 699, 697, 695, 693, 691, 688, 686, 684, 682, 680, 678, 675, 673, 671, 669, 667, 664, 662, 660, 658, 655, 653, 651, 649, 646, 644, 642, 639, 637, 635, 632, 630, 628, 625, 623, 621, 618, 616, 614, 611, 609, 607, 604, 602, 599, 597, 595, 592, 590, 587, 585, 582, 580, 578, 575, 573, 570, 568, 565, 563, 560, 558, 556, 553, 551, 548, 546, 543, 541, 538, 536, 533, 531, 528, 526, 523, 521, 518, 516, 513, 511, 508, 506, 503, 501]
Daily the “Activator” runs and sets (multiplier) to the individual users staking day. Then their payout is calculated and converted based on the amount of Avax (userStaked) multiplied by the Sigmoid derived percentage (multiplier) and then converted to RXG
1uint256 _payout = ((userStaked * multiplier) / 10000); // reward based on user staked amount 2uint256 payout = ((_payout / 72) * 10); // convert to RXG
The RXG earned amount is mapped to the user and available to be retrieved by them without unstaking AVAX.
Last updated