mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 15:37:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			218 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			218 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
<!--
 | 
						|
order: 6
 | 
						|
-->
 | 
						|
 | 
						|
# Begin Block
 | 
						|
 | 
						|
At the start of each block interest is accumulated
 | 
						|
 | 
						|
```go
 | 
						|
// BeginBlocker updates interest rates
 | 
						|
func BeginBlocker(ctx sdk.Context, k Keeper) {
 | 
						|
  k.ApplyInterestRateUpdates(ctx)
 | 
						|
}
 | 
						|
```
 |