fix: remove grant/grant_term from inflation (#489)
This commit is contained in:
parent
97c07c7b0a
commit
e031710ae0
|
@ -82,8 +82,6 @@ type VoteAccountStatus = {
|
||||||
const GetInflationResult = struct({
|
const GetInflationResult = struct({
|
||||||
foundation: 'number',
|
foundation: 'number',
|
||||||
foundation_term: 'number',
|
foundation_term: 'number',
|
||||||
grant: 'number',
|
|
||||||
grant_term: 'number',
|
|
||||||
initial: 'number',
|
initial: 'number',
|
||||||
storage: 'number',
|
storage: 'number',
|
||||||
taper: 'number',
|
taper: 'number',
|
||||||
|
|
|
@ -142,8 +142,6 @@ test('get inflation', async () => {
|
||||||
result: {
|
result: {
|
||||||
foundation: 0.05,
|
foundation: 0.05,
|
||||||
foundation_term: 7.0,
|
foundation_term: 7.0,
|
||||||
grant: 0.05,
|
|
||||||
grant_term: 7.0,
|
|
||||||
initial: 0.15,
|
initial: 0.15,
|
||||||
storage: 0.1,
|
storage: 0.1,
|
||||||
taper: 0.15,
|
taper: 0.15,
|
||||||
|
@ -153,9 +151,18 @@ test('get inflation', async () => {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const inflation = await connection.getInflation();
|
const inflation = await connection.getInflation();
|
||||||
expect(inflation.initial).toBeGreaterThan(0);
|
|
||||||
expect(inflation.storage).toBeGreaterThan(0);
|
for (const key of [
|
||||||
expect(inflation.terminal).toBeGreaterThan(0);
|
'initial',
|
||||||
|
'terminal',
|
||||||
|
'taper',
|
||||||
|
'foundation',
|
||||||
|
'foundation_term',
|
||||||
|
'storage',
|
||||||
|
]) {
|
||||||
|
expect(inflation).toHaveProperty(key);
|
||||||
|
expect(inflation[key]).toBeGreaterThan(0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('get slot', async () => {
|
test('get slot', async () => {
|
||||||
|
|
Loading…
Reference in New Issue