Skip to content

Commit 891d42e

Browse files
committed
made the oracle accept new size
1 parent d6860b1 commit 891d42e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

program/c/src/oracle/oracle.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "oracle.h"
66
#include "upd_aggregate.h"
77

8+
89
// Returns the minimum number of lamports required to make an account
910
// with dlen bytes of data rent exempt. These values were calculated
1011
// using the getMinimumBalanceForRentExemption RPC call, and are
@@ -19,6 +20,8 @@ static uint64_t rent_exempt_amount( uint64_t dlen )
1920
return 4454400;
2021
case sizeof( pc_price_t ):
2122
return 23942400;
23+
case PRICE_ACCOUNT_SIZE:
24+
return 36915840;
2225
default:
2326
return UINT64_MAX;
2427
}

0 commit comments

Comments
 (0)